BenSatori opened a new pull request, #3086: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3086
Dialects: Oracle `SELECT 1 FROM dual WHERE (1,2) ^= ((1,3))` currently fails with: `Expected: an expression, found: = at Line: 1, Column: 33` Oracle accepts `^=` as an alternate spelling of the not-equal operator, alongside `!=` and `<>`. Syntax reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Comparison-Conditions.html This PR adds `Dialect::supports_caret_not_equal()` (default `false`, `true` for `OracleDialect`). When enabled, the tokenizer emits the existing `Token::Neq` for a contiguous `^=`, so it parses as `BinaryOperator::NotEq` and displays as `<>`. No AST changes. Other dialects are unaffected, and `^ =` with whitespace is still rejected. Tests in `tests/sqlparser_oracle.rs` cover the AST shape, display normalization (`^=` → `<>`) for scalar, tuple, and `CASE` usages, and exact error messages for the non-contiguous form and for dialects without support. Fuzzed with `fuzz_parse_sql` and `fuzz_parse_roundtrip` for 60 seconds each, no panics. Seed: `fuzz/fuzz_seeds/oracle_caret_not_equal.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]
