-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23619][DOCS] Add output description for some generator expressions / functions #23748
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
|
You need to update spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala Line 355 in d0443a7
https://spark.apache.org/docs/2.4.0/api/sql/index.html#explode |
|
Also, could you check the other functions for the same fix. e.g., |
|
@maropu I've fixed the comments, added comments for Please let me know if there is anything else I might've missed. |
|
Thanks. Could you cover all the related document fixes in this pr? How about |
| /** | ||
| * Creates a new row for each element in the given array or map column. | ||
| * Uses the default column name `col` for elements in the array and | ||
| * `key` and `value` for elements in the map unless specified otherwise. |
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.
Let's also update Python doc and R doc while we're here. Take a look for functions.py and functions.R
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.
oh... I forgot the viewpoint...thanks.
|
ok to test |
|
Test build #102194 has finished for PR 23748 at commit
|
|
Test build #102195 has finished for PR 23748 at commit
|
|
While looking at the default column names used by inline and stack, I found that inline uses col1, col2, etc. (i.e. 1-indexed columns), while stack uses col0, col1, col2, etc. (i.e. 0-indexed columns). This feels like an issue with consistency. Is there a reason why this column naming convention is kept different? |
|
ah, yes. I think it'd better to fix this, too, in a separate pr. Could you check if we have other expressions having one-based indexing? |
|
Have created a JIRA for tracking the consistency fix: https://issues.apache.org/jira/browse/SPARK-26879 Will update the other expressions having one-based indexing on the JIRA itself, so that it can continue as a separate investigation. |
|
Test build #102622 has finished for PR 23748 at commit
|
|
Test build #102623 has finished for PR 23748 at commit
|
|
@maropu I've added comments for Inline and Stack in the I see that there are a lot of functions (e.g. mathematical functions, etc.) in the |
|
I haven;t checked super closely but looks fine. |
|
Test build #102625 has finished for PR 23748 at commit
|
|
Test build #102624 has finished for PR 23748 at commit
|
|
retest this please |
|
@jashgala Yea, I think we would be nice to fix all the same issues in this pr where possible. |
|
Test build #102631 has finished for PR 23748 at commit
|
|
Cool... Will make the change and add more commits! |
|
@maropu |
|
I took a quick look and looks fine. Let me leave it to @maropu since he's been actively reviewing this. |
|
Could you update the PR description; plz list up all the function you addressed in this PR? |
|
So far I've addressed the following (also updated in PR description):
The others are still WIP |
|
retest this please |
|
Test build #104934 has finished for PR 23748 at commit
|
|
Merged to master. |
|
Thanks.... I will fix the other documentation when I have some free time! |
What changes were proposed in this pull request?
This PR addresses SPARK-23619: https://issues.apache.org/jira/browse/SPARK-23619
It adds additional comments indicating the default column names for the
explodeandposexplodefunctions in Spark-SQL.
Functions for which comments have been updated so far:
How was this patch tested?
This is just a change in the comments. The package builds and tests successfullly after the change.