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-37924][SQL] Sort table properties by key in SHOW CREATE TABLE on VIEW (v1) #35222

Closed
wants to merge 1 commit into from

Conversation

HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR is a sort of a followup of #34719. It added a test but it is flaky due to the order of TABLPROPERTIES in SHOW CREATE TALBE on VIEW in v1 code path.

This PR proposes to have a deterministic order by sorting the table properties in the show command. This is already being sorted in v2 (see ShowCreateTableExec).

Why are the changes needed?

To have the deterministic order, and fix the flaky test.

Does this PR introduce any user-facing change?

Virtually no. It might affect the order of TABLEPROPERTIES in SHOW TABLE's output on VIEW when users are rely on

How was this patch tested?

Fixed the flaky unittest to explicitly test the order.

@Peng-Lei
Copy link
Contributor

LGTM

@HyukjinKwon
Copy link
Member Author

All tests passed at https://github.com/HyukjinKwon/spark/runs/4835259017.

Merged to master.

@HyukjinKwon
Copy link
Member Author

Thanks guys!

@cloud-fan
Copy link
Contributor

late LGTM

@HyukjinKwon HyukjinKwon deleted the SPARK-37924 branch January 15, 2024 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants