File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sql/core/src/main/scala/org/apache/spark/sql/execution Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,12 +176,12 @@ case class ExpandExec(
176176 val boundExpr = BindReferences .bindReference(exprs(col), attributeSeq)
177177 val ev = boundExpr.genCode(ctx)
178178 val inputVars = CodeGenerator .getLocalInputVariableValues(ctx, boundExpr)._1.toSeq
179- val argList = inputVars.map { v =>
180- s " ${CodeGenerator .typeName(v.javaType)} ${v.variableName}"
181- }
182179 val paramLength = CodeGenerator .calculateParamLengthFromExprValues(inputVars)
183180 if (CodeGenerator .isValidParamLength(paramLength)) {
184181 val switchCaseFunc = ctx.freshName(" switchCaseCode" )
182+ val argList = inputVars.map { v =>
183+ s " ${CodeGenerator .typeName(v.javaType)} ${v.variableName}"
184+ }
185185 ctx.addNewFunction(switchCaseFunc,
186186 s """
187187 |private void $switchCaseFunc( ${argList.mkString(" , " )}) {
You can’t perform that action at this time.
0 commit comments