-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-31476][SQL] Add an ExpressionInfo entry for EXTRACT #28251
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
Conversation
dongjoon-hyun
left a comment
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.
+1, LGTM.
|
Test build #121436 has finished for PR 28251 at commit
|
|
Could you regenerate |
|
Ah, yes. I'm updating now. Thanks for the check, anyway. |
|
Test build #121444 has finished for PR 28251 at commit
|
|
retest this please |
|
Test build #121446 has finished for PR 28251 at commit
|
|
cc @gatorsmile |
|
Merged to master/3.0. Thank you, @maropu . |
### What changes were proposed in this pull request? This PR intends to add an ExpressionInfo entry for EXTRACT for better documentations. This PR comes from the comment in #21479 (comment) ### Why are the changes needed? To make SQL documentations complete. ### Does this PR introduce any user-facing change? Yes, this PR updates the `Spark SQL, Built-in Functions` page. ### How was this patch tested? Run the example tests. Closes #28251 from maropu/AddExtractExpr. Authored-by: Takeshi Yamamuro <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 74aed8c) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Thanks for the quick response, @dongjoon-hyun ! cc: @cloud-fan |
| expression[MakeTimestamp]("make_timestamp"), | ||
| expression[MakeInterval]("make_interval"), | ||
| expression[DatePart]("date_part"), | ||
| expression[Extract]("extract"), |
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.
one side effect is now we support extract(field, source) other than extract(field from source). Not a big deal but better if we can avoid exposing more APIs,
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.
Not a big deal but better if we can avoid exposing more APIs
Yea, +1 .
btw, its better to add tests for the case extract(field, source)?
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.
Yea if we decide to support it.
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.
ok, I'll do follow-up later.
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.
I opened #28276
What changes were proposed in this pull request?
This PR intends to add an ExpressionInfo entry for EXTRACT for better documentations.
This PR comes from the comment in #21479 (comment)
Why are the changes needed?
To make SQL documentations complete.
Does this PR introduce any user-facing change?
Yes, this PR updates the
Spark SQL, Built-in Functionspage.How was this patch tested?
Run the example tests.