Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24907 Migrate JDBC data source to DataSource API v2
  3. SPARK-33074

Classify dialect exceptions in JDBC v2 Table Catalog

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      The current implementation of v2.jdbc.JDBCTableCatalog don't care of exceptions defined by org.apache.spark.sql.connector.catalog.TableCatalog at all like

      • NoSuchNamespaceException
      • NoSuchTableException
      • TableAlreadyExistsException
        it either throw dialect exception or generic exception AnalysisException.

      Since we split forming of dialect specific statements and their execution, we should extend dialect APIs and ask them how to convert their exceptions to TableCatalog exceptions.

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: