[ 
https://issues.apache.org/jira/browse/SPARK-38054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17483714#comment-17483714
 ] 

Apache Spark commented on SPARK-38054:
--------------------------------------

User 'beliefer' has created a pull request for this issue:
https://github.com/apache/spark/pull/35355

> 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
>            Priority: Major
>
> 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