Skip to content

Snowflake: parse ORDER BY ALL - #2502

Open
osipovartem wants to merge 1 commit into
apache:mainfrom
Embucket:upstream-snowflake-order-by-all
Open

Snowflake: parse ORDER BY ALL#2502
osipovartem wants to merge 1 commit into
apache:mainfrom
Embucket:upstream-snowflake-order-by-all

Conversation

@osipovartem

Copy link
Copy Markdown
Contributor

ORDER BY ALL is supported by Snowflake and is already represented by the shared OrderByKind::All AST/parser path. This PR enables that existing capability for SnowflakeDialect.

The dialect-specific regression test covers a computed select expression together with DESC NULLS FIRST; the shared parse_select_order_by_all test also begins exercising Snowflake for every supported option combination.

Reference: https://docs.snowflake.com/en/sql-reference/constructs/order-by

Validation:

  • cargo +1.95.0 fmt --all -- --check
  • cargo +1.95.0 test --test sqlparser_snowflake parse_order_by_all
  • cargo +1.95.0 test --test sqlparser_common parse_select_order_by_all
  • cargo +1.95.0 clippy --all-targets -- -D warnings

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.

1 participant