Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/16269#discussion_r99394346
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkStrategies.scala ---
@@ -405,32 +405,4 @@ abstract class SparkStrategies extends
QueryPlanner[SparkPlan] {
case _ => Nil
}
}
-
- object DDLStrategy extends Strategy {
- def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
- case CreateTable(tableDesc, mode, None) if
DDLUtils.isHiveTable(tableDesc) =>
- val cmd = CreateTableCommand(tableDesc, ifNotExists = mode ==
SaveMode.Ignore)
- ExecutedCommandExec(cmd) :: Nil
-
- case CreateTable(tableDesc, mode, None) =>
- val cmd =
- CreateDataSourceTableCommand(tableDesc, ignoreIfExists = mode ==
SaveMode.Ignore)
- ExecutedCommandExec(cmd) :: Nil
-
- // CREATE TABLE ... AS SELECT ... for hive serde table is handled in
hive module, by rule
- // `CreateTables`
-
- case CreateTable(tableDesc, mode, Some(query)) if
DDLUtils.isDatasourceTable(tableDesc) =>
- val cmd =
- CreateDataSourceTableAsSelectCommand(
- tableDesc,
- mode,
- query)
- ExecutedCommandExec(cmd) :: Nil
-
- case c: CreateTempViewUsing => ExecutedCommandExec(c) :: Nil
--- End diff --
Since `CreateTempViewUsing ` is a `RunnableCommand`, this line is useless
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]