jingz-db commented on code in PR #49156: URL: https://github.com/apache/spark/pull/49156#discussion_r1887732419
########## sql/core/src/main/scala/org/apache/spark/sql/execution/python/TransformWithStateInPandasExec.scala: ########## @@ -91,6 +93,7 @@ case class TransformWithStateInPandasExec( private val sessionLocalTimeZone = conf.sessionLocalTimeZone private val pythonRunnerConf = ArrowPythonRunner.getPythonRunnerConfMap(conf) private[this] val jobArtifactUUID = JobArtifactSet.getCurrentJobArtifactState.map(_.uuid) + private val (dedupAttributes, argOffsets) = resolveArgOffsets(child.output, groupingAttributes) Review Comment: This is unchanged in the base change. It was originally here: https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/python/TransformWithStateInPandasExec.scala#L318. I am only moving this out as a class variable so that other function will need to access it as well. This function is mainly used to resolve the offsets for restoring key and value attributes in the python side of runner here: https://github.com/apache/spark/blob/master/python/pyspark/worker.py#L1706 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
