You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel Haviv (Jira)" <ji...@apache.org> on 2021/12/16 13:10:00 UTC

[jira] [Created] (SPARK-37665) JDBC: Provide generic metadata functions

Daniel Haviv created SPARK-37665:
------------------------------------

             Summary: JDBC: Provide generic metadata functions
                 Key: SPARK-37665
                 URL: https://issues.apache.org/jira/browse/SPARK-37665
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: Daniel Haviv


JDBC Driver vendors expose the metadata (databases/tables) for the underlying engine through the [DatabaseMetaData interface.|https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html]

Today when a user wants to fetch the metadata for an engine, they have to execute an sql statement that is tailored to a specific engine/syntax instead of using a more generic approach.

 I suggest we add two new functions to the JDBC reader: 
{code:java}
listDatabases & listTables{code}
 

 



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

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