-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20311][SQL] Support aliases for table value functions #17928
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,3 +49,6 @@ select * from values ("one", count(1)), ("two", 2) as data(a, b); | |
|
|
||
| -- string to timestamp | ||
| select * from values (timestamp('1991-12-06 00:00:00.0'), array(timestamp('1991-12-06 01:00:00.0'), timestamp('1991-12-06 12:00:00.0'))) as data(a, b); | ||
|
|
||
| -- cross-join inline tables | ||
| SELECT * FROM VALUES ('one', 1), ('three', null) CROSS JOIN VALUES ('one', 1), ('three', null); | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,3 +24,7 @@ select * from RaNgE(2); | |
|
|
||
| -- Explain | ||
| EXPLAIN select * from RaNgE(2); | ||
|
|
||
| -- cross-join table valued functions | ||
| SET spark.sql.crossJoin.enabled=true; | ||
|
||
| EXPLAIN EXTENDED SELECT * FROM range(3) CROSS JOIN range(3); | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
This also hits another bug in inline tables. Maybe you also can include the following query in the test case
inline-table.sql?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.
Added.