Maxim Gekk created SPARK-33430:
----------------------------------

             Summary: Support namespaces in JDBC v2 Table Catalog
                 Key: SPARK-33430
                 URL: https://issues.apache.org/jira/browse/SPARK-33430
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.1.0
            Reporter: Maxim Gekk


When I extend JDBCTableCatalogSuite by 
org.apache.spark.sql.execution.command.v2.ShowTablesSuite, for instance:
{code:scala}
import org.apache.spark.sql.execution.command.v2.ShowTablesSuite

class JDBCTableCatalogSuite extends ShowTablesSuite {
  override def version: String = "JDBC V2"
  override def catalog: String = "h2"
...
{code}
some tests from JDBCTableCatalogSuite fail with:
{code}
[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)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to