MaxGekk commented on a change in pull request #31675:
URL: https://github.com/apache/spark/pull/31675#discussion_r584576880



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/ShowTablesSuiteBase.scala
##########
@@ -106,6 +106,18 @@ trait ShowTablesSuiteBase extends QueryTest with 
DDLCommandTestUtils {
     }
   }
 
+  test("SPARK-34560: unique attribute references") {
+    withNamespaceAndTable("ns1", "tbl1") { t1 =>
+      sql(s"CREATE TABLE $t1 (col INT) $defaultUsing")
+      val show1 = sql(s"SHOW TABLES IN $catalog.ns1")

Review comment:
       This test reproduces a real use case at least, and it works already. 
Don't know how often people do self-join of the same `SHOW TABLES`. It seems 
synthetic case to me.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to