-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-51820][SQL][CONNECT] Address remaining issues for new group/order by ordinal approach
#50699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-51820][SQL][CONNECT] Address remaining issues for new group/order by ordinal approach
#50699
Conversation
206a6fc to
bad8633
Compare
group/order by ordinal approach
bad8633 to
6aee218
Compare
|
IIUC we changed the API/approach for functions that explicitly add |
|
We should check all DataFrame APIs, but |
sql/core/src/test/scala/org/apache/spark/sql/ReplaceIntegerLiteralsWithOrdinalsSuite.scala
Outdated
Show resolved
Hide resolved
b4d1ed0 to
1003a53
Compare
|
@cloud-fan Agree that |
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
Outdated
Show resolved
Hide resolved
...connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala
Outdated
Show resolved
Hide resolved
...e/src/test/scala/org/apache/spark/sql/ReplaceIntegerLiteralsWithOrdinalsDataframeSuite.scala
Outdated
Show resolved
Hide resolved
|
@mihailoale-db We are only interested in what happens in early batches (before |
1003a53 to
1d4925f
Compare
1d4925f to
927bdc8
Compare
|
thanks, merging to master! |
…`order` by ordinal approach ### What changes were proposed in this pull request? This is a followup to apache#50606, to address remaining issues in fixed-point analyzer and parser. This PR does the following: 1. Set correct origin in `SparkConnect` and `Dataframe` API 2. Handle remaining cases for order by ordinal in `Dataframe` API 3. Add a test suite for Dataframe use cases since we are missing those ### Why are the changes needed? To address current issue with `UnresolvedOrdinal` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added a new test suite and existing tests. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#50699 from mihailotim-db/mihailotim-db/fix_ordinal_followup. Authored-by: Mihailo Timotic <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
This is a followup to #50606, to address remaining issues in fixed-point analyzer and parser. This PR does the following:
SparkConnectandDataframeAPIDataframeAPIWhy are the changes needed?
To address current issue with
UnresolvedOrdinalDoes this PR introduce any user-facing change?
No
How was this patch tested?
Added a new test suite and existing tests.
Was this patch authored or co-authored using generative AI tooling?
No