diff options
author | tedyu <yuzhihong@gmail.com> | 2016-03-18 12:11:23 +0800 |
---|---|---|
committer | Cheng Lian <lian@databricks.com> | 2016-03-18 12:11:32 +0800 |
commit | 90a1d8db70b073925ced41c2ba61bebc9060e527 (patch) | |
tree | 0b3a85d1a1bc95abb13fd4bcedeb8fe38826ad45 /sql/hive | |
parent | 6c2d894a2f8f7a29ec6fc8163e41c24bb70c3109 (diff) | |
download | spark-90a1d8db70b073925ced41c2ba61bebc9060e527.tar.gz spark-90a1d8db70b073925ced41c2ba61bebc9060e527.tar.bz2 spark-90a1d8db70b073925ced41c2ba61bebc9060e527.zip |
[SPARK-12719][HOTFIX] Fix compilation against Scala 2.10
PR #11696 introduced a complex pattern match that broke Scala 2.10 match unreachability check and caused build failure. This PR fixes this issue by expanding this pattern match into several simpler ones.
Note that tuning or turning off `-Dscalac.patmat.analysisBudget` doesn't work for this case.
Compilation against Scala 2.10
Author: tedyu <yuzhihong@gmail.com>
Closes #11798 from yy2016/master.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala index da05905a89..249a685b9f 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala @@ -492,14 +492,14 @@ class SQLBuilder(logicalPlan: LogicalPlan, sqlContext: SQLContext) extends Loggi } private def addSubqueryIfNeeded(plan: LogicalPlan): LogicalPlan = plan match { - case _: SubqueryAlias | - _: Filter | - _: Join | - _: LocalLimit | - _: GlobalLimit | - _: SQLTable | - _: Generate | - OneRowRelation => plan + case _: SubqueryAlias => plan + case _: Filter => plan + case _: Join => plan + case _: LocalLimit => plan + case _: GlobalLimit => plan + case _: SQLTable => plan + case _: Generate => plan + case OneRowRelation => plan case _ => addSubquery(plan) } } |