XMLWordPrintableJSON

Details

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

    Description

      When I extend JDBCTableCatalogSuite by org.apache.spark.sql.execution.command.v2.ShowTablesSuite, for instance:

      import org.apache.spark.sql.execution.command.v2.ShowTablesSuite
      
      class JDBCTableCatalogSuite extends ShowTablesSuite {
        override def version: String = "JDBC V2"
        override def catalog: String = "h2"
      ...
      

      some tests from JDBCTableCatalogSuite fail with:

      [info] - SHOW TABLES JDBC V2: show an existing table *** FAILED *** (2 seconds, 502 milliseconds)
      [info]   org.apache.spark.sql.AnalysisException: Cannot use catalog h2: does not support namespaces;
      [info]   at org.apache.spark.sql.connector.catalog.CatalogV2Implicits$CatalogHelper.asNamespaceCatalog(CatalogV2Implicits.scala:83)
      [info]   at org.apache.spark.sql.catalyst.analysis.ResolveCatalogs$$anonfun$apply$1.applyOrElse(ResolveCatalogs.scala:208)
      [info]   at org.apache.spark.sql.catalyst.analysis.ResolveCatalogs$$anonfun$apply$1.applyOrElse(ResolveCatalogs.scala:34)
      

      Attachments

        Activity

          People

            huaxingao Huaxin Gao
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: