saurabh-net commented on PR #58867: URL: https://github.com/apache/spark/pull/58867#issuecomment-7070164547
@n-young Following up on the sequencing question in [#discussion_r4525385707](https://github.com/apache/spark/pull/58867#discussion_r4525385707): I've been working on that optimizer gap separately under [SPARK-62199](https://issues.apache.org/jira/browse/SPARK-62199) ([SPIP doc](https://docs.google.com/document/d/1fgUl8U-RfUPdcvbcrc3C_gIoyN4GWQcIPjnD6uj-gOg/edit)), with a Catalyst-internal PR ready for review in #60776. It adds an opt-in `Expression.rowOrderIndependent` property (defaulting to `deterministic`, so unchanged for existing expressions) and leaves `NondeterministicExpressionCollection` / `PullOutNondeterministic` untouched so it won't conflict with this PR. Once this lands, `AesEncrypt` (and its `StaticInvoke` replacement) can opt in via a 2-line follow-up to restore unrelated filter pushdown, partition pruning, DPP, and semi/anti-join pushdown while keeping `deterministic = false` (pushing `Project` below `GlobalLimit`/`LocalLimit` stays deterministic-only to avoid per-partition `LocalLimit` fan-out). If this helps decouple the correctness fix here from the optimizer work, happy to take any feedback on #60776 or the SPIP ahead of the `dev@spark` discussion. (cc @cloud-fan) -- 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]
