如果不存在catalog1 % sql創建目錄
我試過,但它給了我錯誤如下:
com.databricks.backend.common.rpc.DatabricksExceptions SQLExecutionException美元:org.apache.spark.sql。不支持AnalysisException:目錄名稱空間。
com.databricks.sql.managedcatalog.ManagedCatalogErrors .catalogNamespaceNotSupportException美元(ManagedCatalogErrors.scala: 40)
com.databricks.sql.managedcatalog.ExceptionManagedCatalog.createCatalog (ExceptionManagedCatalog.scala: 60)
com.databricks.sql.managedcatalog.ManagedCatalogSessionCatalog.createCatalog (ManagedCatalogSessionCatalog.scala: 357)
com.databricks.sql.managedcatalog.command.CreateCatalogCommand.run (CatalogCommands.scala: 45)
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult lzycompute美元(commands.scala: 80)
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult (commands.scala: 78)
org.apache.spark.sql.execution.command.ExecutedCommandExec.executeCollect (commands.scala: 89)
在org.apache.spark.sql.execution.QueryExecution anonfun nestedInanonfun eagerlyExecuteCommands美元美元1美元1美元。anonfun applyOrElse美元1美元(QueryExecution.scala: 160)
在org.apache.spark.sql.execution.SQLExecution。美元anonfun withCustomExecutionEnv 8美元(SQLExecution.scala: 239)
org.apache.spark.sql.execution.SQLExecution .withSQLConfPropagated美元(SQLExecution.scala: 386)
在org.apache.spark.sql.execution.SQLExecution。美元anonfun withCustomExecutionEnv 1美元(SQLExecution.scala: 186)
org.apache.spark.sql.SparkSession.withActive (SparkSession.scala: 968)
org.apache.spark.sql.execution.SQLExecution .withCustomExecutionEnv美元(SQLExecution.scala: 141)
org.apache.spark.sql.execution.SQLExecution .withNewExecutionId美元(SQLExecution.scala: 336)
在org.apache.spark.sql.execution.QueryExecution anonfun nestedInanonfun eagerlyExecuteCommands美元美元1美元1.美元applyorelse (QueryExecution.scala: 160)
在org.apache.spark.sql.execution.QueryExecution anonfun nestedInanonfun eagerlyExecuteCommands美元美元1美元1.美元applyorelse (QueryExecution.scala: 156)
在org.apache.spark.sql.catalyst.trees.TreeNode。anonfun transformDownWithPruning美元1美元(TreeNode.scala: 575)
org.apache.spark.sql.catalyst.trees.CurrentOrigin .withOrigin美元(TreeNode.scala: 167)
org.apache.spark.sql.catalyst.trees.TreeNode.transformDownWithPruning (TreeNode.scala: 575)
在org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.org apache火花sql催化劑美元美元計劃邏輯AnalysisHelper超級美元美元美元transformDownWithPruning (LogicalPlan.scala: 30)
org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.transformDownWithPruning (AnalysisHelper.scala: 268)
在org.apache.spark.sql.catalyst.plans.logical.AnalysisHelper.transformDownWithPruning (AnalysisHelper.scala: 264美元)
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.transformDownWithPruning (LogicalPlan.scala: 30)
org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.transformDownWithPruning (LogicalPlan.scala: 30)
org.apache.spark.sql.catalyst.trees.TreeNode.transformDown (TreeNode.scala: 551)
在org.apache.spark.sql.execution.QueryExecution。anonfun eagerlyExecuteCommands美元1美元(QueryExecution.scala: 156)