Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In interface RelDataTypeSystem, add methods getMinScale(SqlTypeName) and getDefaultScale(SqlTypeName); if getMinScale returns a negative value for the DECIMAL type, the type system will allow DECIMAL values with negative scale.
https://www.postgresql.org/docs/current/datatype-numeric.html
According to the document, a numeric column with a negative scale can be declared beginning in PostgreSQL 15. This PR will add some tests to cover getMinScale is non-negative and will throw an exception if set getMinScale is negative.
Attachments
Issue Links
- blocks
-
CALCITE-6582 Release Calcite 1.38.0
- Closed
- is related to
-
CALCITE-6602 Deadlock while loading class SqlTypeFixture
- Open
-
CALCITE-6406 Negative scales for DECIMAL types are not tested
- Closed
- relates to
-
CALCITE-6598 In RelDataTypeSystem, deprecate methods getMaxNumericScale and getMaxNumericPrecision
- Closed
- links to