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-50690][SQL] Fix discrepancy in DESCRIBE TABLE view query output columns quoting #49321

Closed

Conversation

asl3
Copy link
Contributor

@asl3 asl3 commented Dec 27, 2024

What changes were proposed in this pull request?

Previously, the DESCRIBE TABLE SQL command displayed column lists such as bucket and sort columns as so:

Bucket Columns          [`a`]                                       
Sort Columns            [`b`] 

However view query output columns were not quoted:

View Query Output Columns      [c1] 

This PR fixes the discrepancy by quoting the view query output columns with ``:

View Query Output Columns      [`c1`] 

Why are the changes needed?

The change ensures cohesive DESCRIBE TABLE output, which can improve parsing and readability.

Does this PR introduce any user-facing change?

Yes, this modifies the view query output columns portion of the DESCRIBE TABLE output.

How was this patch tested?

Existing SQL tests, including golden file output

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

No

@github-actions github-actions bot added the SQL label Dec 27, 2024
@HyukjinKwon
Copy link
Member

Merged to master.

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