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

   Dialects: Spark
   
   Fixes #3055.
   
   `SELECT -128::TINYINT` now casts the negative literal instead of negating a 
cast of positive `128`, which overflows `TINYINT`.
   
   Spark now treats a leading minus as part of a numeric literal, matching its 
[number 
grammar](https://github.com/apache/spark/blob/v4.2.0/sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4#L1769).
 Nonliteral unary minus, unary plus and other dialects retain their existing 
grouping.
   
   Added AST assertions for integer boundaries, numeric forms, spans, preserved 
operators, errors and round trips, plus a minimal fuzz seed.
   
   Local checks passed on macOS: default tests, stable/beta/nightly all-feature 
tests, fmt, Clippy, docs, no_std, RAT and coverage. Changed executable lines 
have 100% coverage. Parser and display/reparse fuzz runs completed over 210,000 
inputs without reported failures.
   
   Assisted by Codex.
   


-- 
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