Skip to content

[CALCITE-7597] Support ORDER BY ALL#5010

Open
tisyabhatia wants to merge 1 commit into
apache:mainfrom
tisyabhatia:CALCITE-7597-order-by-all
Open

[CALCITE-7597] Support ORDER BY ALL#5010
tisyabhatia wants to merge 1 commit into
apache:mainfrom
tisyabhatia:CALCITE-7597-order-by-all

Conversation

@tisyabhatia

@tisyabhatia tisyabhatia commented Jun 10, 2026

Copy link
Copy Markdown

@tisyabhatia tisyabhatia force-pushed the CALCITE-7597-order-by-all branch 4 times, most recently from 0759c6e to e9491a7 Compare June 10, 2026 19:12
Comment thread core/src/main/java/org/apache/calcite/sql/fun/SqlInternalOperators.java Outdated
Comment thread site/_docs/reference.md Outdated
When ORDER BY ALL appears with no order items, sort by every expression in the SELECT clause, in select-list order. An optional trailing ASC/DESC and NULLS FIRST/LAST applies to all keys. The parser emits an ORDER_BY_ALL marker (wrapped in DESC/NULLS_FIRST/NULLS_LAST when a direction is given); SqlValidatorImpl.validateOrderList expands it to the SELECT items, re-applying the direction to each key. SELECT * is rejected. Includes parser + validator tests and reference docs.
@tisyabhatia tisyabhatia force-pushed the CALCITE-7597-order-by-all branch from e88f311 to 164eed9 Compare June 11, 2026 18:38
@tisyabhatia tisyabhatia requested a review from mihaibudiu June 11, 2026 18:40
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants