mvzink opened a new issue, #1923: URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1923
When specifying explicit precision and scale for numerics, Postgres allows the ranges `0..=1000` for precision and `-1000..=1000` for scale. Currently, `ExactNumberInfo` uses `u64` to represent scale, and the parser fails on the `-` when trying to parse DDL with a negative scale: ```sql create table t (x numeric(1000,-10)); Error during parsing: ParserError("Expected: literal int, found: - at Line: 1, Column: 32") ``` -- 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org