jiaan.geng created SPARK-38054:
----------------------------------

             Summary: DS V2 supports list namespaces of MySQL
                 Key: SPARK-38054
                 URL: https://issues.apache.org/jira/browse/SPARK-38054
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: jiaan.geng


Currently, JDBCTableCatalog.scala query namespaces by below.
         val rs = conn.getMetaData.getSchemas(null, db)
         while (rs.next()) {
           if (rs.getString(1) == db) return true;
         }
         false
But cannot get any information when using MySQL JDBC driver.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to