Skip to content

[AURON #2738] Build native sort expressions in one place - #2739

Draft
robreeves wants to merge 1 commit into
apache:masterfrom
robreeves:sort-order-helper
Draft

robreeves wants to merge 1 commit into
apache:masterfrom
robreeves:sort-order-helper

Conversation

@robreeves

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #2738. No behavior change.

Rationale for this change

Five native operators each build the same sort-expression protobuf from a Spark SortOrder. #2738 needs to change how float sort keys are converted, so this moves that code to one place first. The fix can then be a small, behavior-only change.

What changes are included in this PR?

Adds NativeConverters.convertSortOrder and uses it in NativeSortBase, NativeTakeOrderedBase, NativePartialTakeOrderedBase, NativeWindowBase, and NativeShuffleExchangeBase.

Are there any user-facing changes?

No.

How was this patch tested?

Existing tests. AuronQuerySuite, NativeConvertersSuite, AuronWindowSuite, and AuronHiveExecSuite pass on Spark 3.1 and 3.5.

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

Generated-by: GitHub Copilot CLI 1.0.65

ASF guidance: https://www.apache.org/legal/generative-tooling.html

Generated-by: GitHub Copilot CLI 1.0.65

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant