-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-34560][SQL] Generate unique output attributes in the SHOW TABLES logical node
#31675
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
|
Test build #135542 has finished for PR 31675 at commit
|
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
Show resolved
Hide resolved
...core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
Show resolved
Hide resolved
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
sql/core/src/test/scala/org/apache/spark/sql/execution/command/ShowTablesSuiteBase.scala
Show resolved
Hide resolved
|
Test build #135584 has finished for PR 31675 at commit
|
|
Test build #135586 has finished for PR 31675 at commit
|
|
The change LGTM, but I'm wondering if we need to add a self-join test for every command that has output. Shall we simply make this fix for all the existing commands that have |
|
For all changed |
I would propose to have one test for at least the command |
|
thanks, merging to master! |
|
@beliefer @AngersZhuuuu let's use this new approach when you add |
|
Test build #135598 has finished for PR 31675 at commit
|
Sure |
What changes were proposed in this pull request?
In the PR, I propose to generate unique attributes in the logical nodes of the
SHOW TABLEScommand.Also, this PR fixes similar issues in other logical nodes:
Why are the changes needed?
This fixes the issue which is demonstrated by the example below:
Does this PR introduce any user-facing change?
Yes. After the changes, the example above works as expected:
How was this patch tested?
By running the new test: