Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for nested fields #18546

Open
mosabua opened this issue Aug 4, 2023 · 3 comments
Open

Add documentation for nested fields #18546

mosabua opened this issue Aug 4, 2023 · 3 comments
Assignees

Comments

@mosabua
Copy link
Member

mosabua commented Aug 4, 2023

for engine and sql language in general (ALTER COLUMN, CREATE TABLE .. and so on)

And then also for connectors that support this. Currently only Iceberg.

See #16959 and linked PRs and release notes.

@mosabua mosabua self-assigned this Aug 4, 2023
@mosabua
Copy link
Member Author

mosabua commented Aug 4, 2023

Also see discussion in #18496 - @ebyhr will help with review

@dhuynh
Copy link

dhuynh commented Oct 16, 2023

CREATE TABLE for nested fields exists for JSON - is this what you are looking for?
CREATE TABLE persons ( firstName varchar, lastName varchar, address ROW( street varchar, city varchar, country varchar ), jobs ARRAY( ROW( job varchar, episode varchar ) ) ) WITH ( external_location = 's3a://data-lake/persons', format = 'JSON' )

Does this nested field syntax work across connectors and formats like Hive/Avro and Iceberg/Avro?

@mosabua
Copy link
Member Author

mosabua commented Oct 16, 2023

Yes .. this is one of the things we need to document .. but we had more features around this in recent releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants