-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add the ability to create tables with deeply nested schemas in SQL #11746
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
enhancement
New feature or request
Comments
27 tasks
We need to support such syntax in sqlparser. Since we mirror the behavior from duckdb for struct and map mostly, I prefer we switch to duckdb syntax for them in datafusion, so we can check against the result with copy&paste easily TODO:
|
I think this is woring wekk now
> create table t (s struct<name varchar, info struct<color varchar, size int>>[]);
0 row(s) fetched.
Elapsed 0.001 seconds.
> select * from t;
+---+
| s |
+---+
+---+
0 row(s) fetched.
Elapsed 0.001 seconds. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Is your feature request related to a problem or challenge?
At the moment, we cannot create tables with deeply nested columns, for example a column that has a map of string to list of structs etc.
We should have the ability to create deeply nested schemas in SQL
Describe the solution you'd like
DuckDB has in its SQL DML dialect some markers / functions that allow this:
We should have either syntax or functions that we could use to have the same result
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: