[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.
This commit is contained in:
parent
6c2d894a2f
commit
90a1d8db70
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue