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 LATERAL VIEW json_tuple AS ... in Hive VIEW #7420
Conversation
98a5b23
to
85445a4
Compare
onTrino().executeQuery("DROP TABLE IF EXISTS test_json_tuple_table"); | ||
onTrino().executeQuery("" + | ||
"CREATE TABLE test_json_tuple_table AS " + | ||
"SELECT 3 id, CAST('{\"user_id\": 1000, \"first.name\": \"Mateusz\", \"Last Name\": \"Gajewski\", \".NET\": true}' AS varchar) jsonstr"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wendigo please review this query ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's ok but can we @findepi add an non-existent field as well (which should yield NULL)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding. And adding a field with json null value as well.
"SELECT 3 id, CAST('{\"user_id\": 1000, \"first.name\": \"Mateusz\", \"Last Name\": \"Gajewski\", \".NET\": true}' AS varchar) jsonstr"); | ||
|
||
onHive().executeQuery("DROP VIEW IF EXISTS test_json_tuple_view"); | ||
onHive().executeQuery("CREATE VIEW test_json_tuple_view AS " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. Do you support the cN syntax alrady (without explicit column names)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> #7456
Wording copied from session property.
AC; updated to a release of Coral and fixed title, commit message to indicate the |
Fixes #7242