Github user bdrillard commented on a diff in the pull request:
https://github.com/apache/spark/pull/18075#discussion_r118302075
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/basicPhysicalOperators.scala
---
@@ -299,6 +297,9 @@ case class SampleExec(
| }
""".stripMargin.trim)
+ ctx.addMutableState(s"$samplerClass<UnsafeRow>", sampler,
--- End diff --
This change should stay the way it is. Notice that the initialization code
for the `addMutableState` call on the line just below is the same code passed
to the `addNewFunction` call. This means that when we create the new function,
we may get back a class-qualified function name (which here we store in
`initSamplerFuncName`), so the call to `addMutableState` must come after the
`addNewFunction` call.
---
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]