Skip to content

how to select children of a struct with Scan #34649

@j0bekt01

Description

@j0bekt01

Describe the usage question you have. Please include as many useful details as possible.

How do you scan nested structs in R? This is what I tried so far but to no avail:
PATH <- "s3 URI path"
df <- arrow::open_dataset(sources=PATH)
scan_builder <- df$NewScan()
Neither of these works.
scan_builder$Project(list(doc_id = Expression$field_ref("document.id")))
scan_builder$Project(list(doc_id = Expression$field_ref("document.id")))

However, if I do:
scan_builder$Project(list(doc_id = Expression$field_ref("document"))) works but I don't want the entire nested object imported into R.

Component(s)

R

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions