BenSatori opened a new pull request, #3091:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3091

   Dialects: Oracle, Generic
   
   `SELECT id FROM customers START WITH id=1 CONNECT BY PRIOR id=id-1 ORDER 
SIBLINGS BY id` currently fails with:
   `Expected: end of statement, found: ORDER at Line: 1, Column: 67`
   
   Oracle's hierarchical queries support `ORDER SIBLINGS BY`, which orders rows 
among siblings while preserving the `CONNECT BY` hierarchy. Syntax reference:
   
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/SELECT.html
   
   This PR adds:
   - `Dialect::supports_order_siblings_by()`, enabled for Oracle and Generic 
(matching `supports_connect_by()`)
   - a non-reserved `SIBLINGS` keyword, so `siblings` still works as an 
identifier
   - an `OrderBy::siblings` field so the clause is preserved in the AST and 
displayed as `ORDER SIBLINGS BY` (API change)
   
   Like Oracle's own grammar, the parser doesn't require a `CONNECT BY` clause 
to be present; Oracle enforces that semantically (ORA-30929).
   
   Fuzzed with `fuzz_parse_sql` and `fuzz_parse_roundtrip` for 60 seconds each, 
no panics. Seed: `fuzz/fuzz_seeds/oracle_order_siblings_by.sql`.
   
   This PR was written with AI assistance (Claude Code). I reviewed every line 
and can explain each change.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to