Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/3712#discussion_r21929161
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveStrategies.scala ---
@@ -226,23 +226,27 @@ private[hive] trait HiveStrategies {
case class HiveCommandStrategy(context: HiveContext) extends Strategy {
def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
- case logical.NativeCommand(sql) => NativeCommand(sql,
plan.output)(context) :: Nil
+ case hive.NativeCommand(sql) => ExecutedCommand(
+ execution.NativeCommand(sql, plan.output)(context)) :: Nil
- case hive.DropTable(tableName, ifExists) =>
execution.DropTable(tableName, ifExists) :: Nil
+ case hive.DropTable(tableName, ifExists) => ExecutedCommand(
+ execution.DropTable(tableName, ifExists)(context)) :: Nil
- case hive.AddJar(path) => execution.AddJar(path) :: Nil
+ case hive.AddJar(path) =>
ExecutedCommand(execution.AddJar(path)(context)) :: Nil
- case hive.AddFile(path) => execution.AddFile(path) :: Nil
+ case hive.AddFile(path) =>
ExecutedCommand(execution.AddFile(path)(context)) :: Nil
- case hive.AnalyzeTable(tableName) =>
execution.AnalyzeTable(tableName) :: Nil
+ case hive.AnalyzeTable(tableName) => ExecutedCommand(
+ execution.AnalyzeTable(tableName)(context)) :: Nil
case describe: logical.DescribeCommand =>
val resolvedTable = context.executePlan(describe.table).analyzed
resolvedTable match {
case t: MetastoreRelation =>
- Seq(DescribeHiveTableCommand(t, describe.output,
describe.isExtended)(context))
+ ExecutedCommand(
+ DescribeHiveTableCommand(t, describe.output,
describe.isExtended)(context)) :: Nil
case o: LogicalPlan =>
- Seq(DescribeCommand(planLater(o), describe.output)(context))
+ ExecutedCommand(DescribeCommand(planLater(o),
describe.output)(context)) :: Nil
--- End diff --
Same, it would be good to remove these too if possible.
---
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]