aboutsummaryrefslogtreecommitdiff
path: root/sql/catalyst/src/main/scala/org/apache
diff options
context:
space:
mode:
authorCheng Hao <hao.cheng@intel.com>2014-09-11 11:57:01 -0700
committerMichael Armbrust <michael@databricks.com>2014-09-11 11:57:01 -0700
commitca83f1e2c4dfa519e44b837b6815cba3b4526d92 (patch)
tree0f1929f65f5e4a51f25d679b59238f7b0bf47e8d /sql/catalyst/src/main/scala/org/apache
parent1ef656ea85b4b93c7b0f3cf8042b63a0de0901cb (diff)
downloadspark-ca83f1e2c4dfa519e44b837b6815cba3b4526d92.tar.gz
spark-ca83f1e2c4dfa519e44b837b6815cba3b4526d92.tar.bz2
spark-ca83f1e2c4dfa519e44b837b6815cba3b4526d92.zip
[SPARK-2917] [SQL] Avoid table creation in logical plan analyzing for CTAS
Author: Cheng Hao <hao.cheng@intel.com> Closes #1846 from chenghao-intel/ctas and squashes the following commits: 56a0578 [Cheng Hao] remove the unused imports 9a57abc [Cheng Hao] Avoid table creation in logical plan analyzing
Diffstat (limited to 'sql/catalyst/src/main/scala/org/apache')
-rw-r--r--sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
index 4adfb18937..5d10754c7b 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
@@ -114,11 +114,12 @@ case class InsertIntoTable(
}
}
-case class InsertIntoCreatedTable(
+case class CreateTableAsSelect(
databaseName: Option[String],
tableName: String,
child: LogicalPlan) extends UnaryNode {
override def output = child.output
+ override lazy val resolved = (databaseName != None && childrenResolved)
}
case class WriteToFile(