Github user bdrillard commented on a diff in the pull request:
https://github.com/apache/spark/pull/18075#discussion_r119180019
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala
---
@@ -190,15 +190,15 @@ case class Stack(children: Seq[Expression]) extends
Generator {
if (index < values.length) values(index) else Literal(null,
dataTypes(col))
}
val eval = CreateStruct(fields).genCode(ctx)
- s"${eval.code}\nthis.$rowData[$row] = ${eval.value};"
+ s"${eval.code}\n$rowData[$row] = ${eval.value};"
})
// Create the collection.
val wrapperClass = classOf[mutable.WrappedArray[_]].getName
ctx.addMutableState(
s"$wrapperClass<InternalRow>",
ev.value,
- s"this.${ev.value} = $wrapperClass$$.MODULE$$.make(this.$rowData);")
+ s"this.${ev.value} = $wrapperClass$$.MODULE$$.make($rowData);")
--- End diff --
Good catch, fixed:
https://github.com/apache/spark/pull/18075/commits/493113ce2e1271039701be35b2603271282111df#diff-16493d6958b6daaf4a24dd7b780ba4bcL201
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]