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: [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]