You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-51820][FOLLOWUP][CONNECT] Replace literal in SortOrder only under Sort operator
### What changes were proposed in this pull request?
Replace literal in `SortOrder` only under `Sort` operator
### Why are the changes needed?
SPARK-51820 introduced a bug where literal under all `SortOrder` expressions were treated as ordinals, breaking Windows in Spark Connect. This PR fixes that.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Added a test case
### Was this patch authored or co-authored using generative AI tooling?
No
Closes#52189 from mihailotim-db/mihailotim-db/fix_window_ordinal.
Authored-by: Mihailo Timotic <mihailo.timotic@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
0 commit comments