Skip to content

Commit 7d82ede

Browse files
committed
Add UnaryCommand and make CreateTableAsSelect below it.
1 parent b348094 commit 7d82ede

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ case class InsertIntoTable(
137137
}
138138
}
139139

140-
trait CreateTableAsSelect extends UnaryNode {
140+
abstract class CreateTableAsSelect extends UnaryCommand {
141141
self: Product =>
142142
def databaseName: Option[String]
143143
def tableName: String

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/commands.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@ abstract class Command extends LeafNode {
2727
self: Product =>
2828
def output: Seq[Attribute] = Seq.empty
2929
}
30+
31+
/**
32+
* An UnaryNode that represents a non-query command to be executed by the system.
33+
*/
34+
abstract class UnaryCommand extends UnaryNode {
35+
self: Product =>
36+
def output: Seq[Attribute] = Seq.empty
37+
}

0 commit comments

Comments
 (0)