Maxim Gekk created SPARK-33403:
----------------------------------

             Summary: DSv2 SHOW TABLES doesn't show `default`
                 Key: SPARK-33403
                 URL: https://issues.apache.org/jira/browse/SPARK-33403
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.1.0
            Reporter: Maxim Gekk


DSv1:
{code:scala}
  test("namespace is not specified and the default catalog is set") {
    withSQLConf(SQLConf.DEFAULT_CATALOG.key -> catalog) {
      withTable("table") {
        spark.sql(s"CREATE TABLE table (id bigint, data string) $defaultUsing")
        sql("SHOW TABLES").show()
      }
    }
  }
{code}
{code}
+--------+---------+-----------+
|database|tableName|isTemporary|
+--------+---------+-----------+
| default|    table|      false|
+--------+---------+-----------+
{code}

DSv2:
{code}
+---------+---------+
|namespace|tableName|
+---------+---------+
|         |    table|
+---------+---------+
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to