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

Support for Struct data types or struct parsing for Spark dialect #134

Closed
pdutta777 opened this issue May 23, 2022 · 1 comment
Closed

Comments

@pdutta777
Copy link

I'm wondering if it is possible to implement struct handling such that a query like this:

SELECT a.b.c from table_1 would parse as a struct field type.

@tobymao
Copy link
Owner

tobymao commented May 23, 2022

it essentially does, it evaluates- to column a.b dot c. where the dot points to the struct c. if you want to be explicit, as an input, you can use STRUCT_EXTRACT

it's a bit tricky to explicitly say that a.b.c is always a struct because it requires context about the schema. schema is something we're adding, but it's mainly used for the optimizer at this point

@tobymao tobymao closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants