Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/12040#discussion_r57935636
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/Window.scala ---
@@ -885,6 +886,12 @@ private[execution] object AggregateProcessor {
val evaluateExpressions =
mutable.Buffer.fill[Expression](ordinal)(NoOp)
val imperatives = mutable.Buffer.empty[ImperativeAggregate]
+ // SPARK-14244: `SizeBasedWindowFunction`s created on driver side and
serialized to executor
+ // side contains global window partition size attribute reference
(`SizeBasedWindowFunction.n`),
+ // and must be rewritten using the one instantiated on executor side.
Otherwise, attribute
+ // binding fails because of different expression ID.
+ functions.foreach(rewriteWindowPartitionSize)
--- End diff --
I think it's better to use the `n` from driver, instead of using the one
created in executor. That could be found in any SizeBasedWindowFunction
---
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]