Skip to content
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

[SPARK-49909][SQL][3.5] Fix the pretty name of some expressions #48393

Closed

Conversation

panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Oct 9, 2024

What changes were proposed in this pull request?

The pr aims to fix the pretty name of some expressions, includes: random, to_varchar, current_database, curdate, dateadd and array_agg.
(PS: The pr is backport branch-3.5, master pr is: #48385)

Why are the changes needed?

The actual function name used does not match the displayed name, as shown below:

  • Before:
image
  • After:
image

Does this PR introduce any user-facing change?

Yes, Make the header of the data seen by the end-user from Spark SQL consistent with the actual function name used.

How was this patch tested?

  • Pass GA.
  • Update existed UT.

Was this patch authored or co-authored using generative AI tooling?

No.

@panbingkun
Copy link
Contributor Author

cc @MaxGekk
I am still verifying the PR for branch-3.4 locally.
Thanks!

@panbingkun panbingkun marked this pull request as ready for review October 9, 2024 12:06
@MaxGekk
Copy link
Member

MaxGekk commented Oct 9, 2024

+1, LGTM. Merging to 3.5.
Thank you, @panbingkun.

MaxGekk pushed a commit that referenced this pull request Oct 9, 2024
### What changes were proposed in this pull request?
The pr aims to fix the `pretty name` of some `expressions`, includes: `random`, `to_varchar`, `current_database`, `curdate`, `dateadd` and `array_agg`.
(PS: The pr is backport branch-3.5, master pr is: #48385)

### Why are the changes needed?
The actual function name used does not match the displayed name, as shown below:
- Before:
<img width="573" alt="image" src="https://github.com/user-attachments/assets/f5785c80-f6cb-494f-a15e-9258eca688a7">

- After:
<img width="570" alt="image" src="https://github.com/user-attachments/assets/792a7092-ccbf-49f4-a616-19110e5c2361">

### Does this PR introduce _any_ user-facing change?
Yes, Make the header of the data seen by the end-user from `Spark SQL` consistent with the `actual function name` used.

### How was this patch tested?
- Pass GA.
- Update existed UT.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #48393 from panbingkun/branch-3.5_SPARK-49909.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
@MaxGekk MaxGekk closed this Oct 9, 2024
MaxGekk pushed a commit that referenced this pull request Oct 18, 2024
### What changes were proposed in this pull request?
The pr aims to revert #48393.
This reverts commit 4472fb2.

### Why are the changes needed?
Only revert.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #48531 from panbingkun/branch-3.5_SPARK-49909_revert.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants