-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17069] Expose spark.range() as table-valued function in SQL #14656
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 1 commit
5d7fbfb
e5b0e27
0d4ad5e
4d9eb53
21078e6
cc987d3
92e668f
d1fd2b9
fbf515f
29f9538
e9251f5
1f81b97
94ad7f1
a444b9e
7bac3af
78c9f05
4d94ac0
2f80f54
8e03f51
1fa57c4
f8831ca
7ebd563
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -653,13 +653,13 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with Logging { | |
| } | ||
|
|
||
| /** | ||
| * Create a table-valued-function call with arguments, e.g. range(1000) | ||
| * Create a table-valued function call with arguments, e.g. range(1000) | ||
| */ | ||
| override def visitTableValuedFunction(ctx: TableValuedFunctionContext) | ||
| : LogicalPlan = withOrigin(ctx) { | ||
| val expressions = ctx.expression.asScala.map { ec => | ||
| val e = expression(ec) | ||
| assert(e.foldable, "All params of a table-valued-function call must be constants.", ec) | ||
| assert(e.foldable, "All arguments of a table-valued-function must be constants.", ec) | ||
|
||
| e | ||
| } | ||
| UnresolvedTableValuedFunction(ctx.identifier.getText, expressions) | ||
|
|
||
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.
Nit style I think we need to put the every arguments on a separate line if the unbroken line exceeds 100 characters.
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 is a fine style actually.
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.
nevermind then :)