Skip to content

[SPARK-32426][SQL] ui shows sql after variable substitution #29221

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

Closed
wants to merge 1 commit into from

Conversation

cxzl25
Copy link
Contributor

@cxzl25 cxzl25 commented Jul 24, 2020

What changes were proposed in this pull request?

When submitting sql with variables, the sql displayed by ui is not replaced by variables.

Why are the changes needed?

See the final executed sql in ui

Does this PR introduce any user-facing change?

No

How was this patch tested?

manual test

@cxzl25
Copy link
Contributor Author

cxzl25 commented Jul 24, 2020

set hivevar:XX=123;
select '${XX}';

Before

image

After

image

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you for your contribution, @cxzl25 . I verified this PR manually.
Merged to master branch for Apache Spark 3.1.0 on December 2020.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants