diff options
author | Santiago M. Mola <santi@mola.io> | 2015-05-22 15:10:27 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-05-22 15:10:27 -0700 |
commit | e4aef91fe70d6c9765d530b913a9d79103fc27ce (patch) | |
tree | febe669cb5335ee78d1ba829cf078bb10e7e67f9 /sql | |
parent | 31d5d463e76b6611c854c6cf27059fec8198adc9 (diff) | |
download | spark-e4aef91fe70d6c9765d530b913a9d79103fc27ce.tar.gz spark-e4aef91fe70d6c9765d530b913a9d79103fc27ce.tar.bz2 spark-e4aef91fe70d6c9765d530b913a9d79103fc27ce.zip |
[SPARK-7724] [SQL] Support Intersect/Except in Catalyst DSL.
Author: Santiago M. Mola <santi@mola.io>
Closes #6327 from smola/feature/catalyst-dsl-set-ops and squashes the following commits:
11db778 [Santiago M. Mola] [SPARK-7724] [SQL] Support Intersect/Except in Catalyst DSL.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala index 4c0d70203c..307a9ca9b0 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala @@ -276,6 +276,10 @@ package object dsl { def unionAll(otherPlan: LogicalPlan): LogicalPlan = Union(logicalPlan, otherPlan) + def except(otherPlan: LogicalPlan): LogicalPlan = Except(logicalPlan, otherPlan) + + def intersect(otherPlan: LogicalPlan): LogicalPlan = Intersect(logicalPlan, otherPlan) + def sfilter[T1](arg1: Symbol)(udf: (T1) => Boolean): LogicalPlan = Filter(ScalaUdf(udf, BooleanType, Seq(UnresolvedAttribute(arg1.name))), logicalPlan) |