Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix SPARK-7686 with a simple change in SparkStrategies.
  • Loading branch information
JoshRosen committed May 17, 2015
commit 953a344ae56b0f6a5677ebe295348d0829feb070
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ private[sql] abstract class SparkStrategies extends QueryPlanner[SparkPlan] {
case c: CreateTableUsingAsSelect if !c.temporary =>
sys.error("Tables created with SQLContext must be TEMPORARY. Use a HiveContext instead.")

case LogicalDescribeCommand(table, isExtended) =>
case describe @ LogicalDescribeCommand(table, isExtended) =>
val resultPlan = self.sqlContext.executePlan(table).executedPlan
ExecutedCommand(
RunnableDescribeCommand(resultPlan, resultPlan.output, isExtended)) :: Nil
RunnableDescribeCommand(resultPlan, describe.output, isExtended)) :: Nil

case _ => Nil
}
Expand Down