Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-42600][SQL] CatalogImpl.currentDatabase shall use NamespaceHel…
…per instead of MultipartIdentifierHelper ### What changes were proposed in this pull request? v2 catalog default namespace may be empty ```java Exception in thread "main" org.apache.spark.sql.AnalysisException: Multi-part identifier cannot be empty. at org.apache.spark.sql.errors.QueryCompilationErrors$.emptyMultipartIdentifierError(QueryCompilationErrors.scala:1887) at org.apache.spark.sql.connector.catalog.CatalogV2Implicits$MultipartIdentifierHelper.<init>(CatalogV2Implicits.scala:152) at org.apache.spark.sql.connector.catalog.CatalogV2Implicits$.MultipartIdentifierHelper(CatalogV2Implicits.scala:150) at org.apache.spark.sql.internal.CatalogImpl.currentDatabase(CatalogImpl.scala:65) ``` ### Why are the changes needed? bugfix ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? locally verified Closes #40192 from yaooqinn/SPARK-42600. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information