Skip to content

Commit 2997ded

Browse files
author
pj.fanning
committed
Explicitly reference the maxLines param
1 parent 52b20f3 commit 2997ded

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,12 +1050,12 @@ object CodeGenerator extends Logging {
10501050
case e: JaninoRuntimeException =>
10511051
val msg = s"failed to compile: $e"
10521052
logError(msg, e)
1053-
logInfo(s"\n${CodeFormatter.format(code, 1000)}")
1053+
logInfo(s"\n${CodeFormatter.format(code, maxLines = 1000)}")
10541054
throw new JaninoRuntimeException(msg, e)
10551055
case e: CompileException =>
10561056
val msg = s"failed to compile: $e"
10571057
logError(msg, e)
1058-
logInfo(s"\n${CodeFormatter.format(code, 1000)}")
1058+
logInfo(s"\n${CodeFormatter.format(code, maxLines = 1000)}")
10591059
throw new CompileException(msg, e.getLocation)
10601060
}
10611061
evaluator.getClazz().newInstance().asInstanceOf[GeneratedClass]

0 commit comments

Comments
 (0)