Skip to content

Commit a5fd465

Browse files
committed
address review comments
1 parent 3868bf5 commit a5fd465

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,8 @@ abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Serializ
373373
try {
374374
GeneratePredicate.generate(expression, inputSchema)
375375
} catch {
376-
case e: JaninoRuntimeException if sqlContext == null || sqlContext.conf.wholeStageFallback =>
377-
genInterpretedPredicate(expression, inputSchema)
378-
case e: CompileException if sqlContext == null || sqlContext.conf.wholeStageFallback =>
376+
case e @ (_: JaninoRuntimeException | _: CompileException)
377+
if sqlContext == null || sqlContext.conf.wholeStageFallback =>
379378
genInterpretedPredicate(expression, inputSchema)
380379
}
381380
}

0 commit comments

Comments
 (0)