[
https://issues.apache.org/jira/browse/CALCITE-6560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879582#comment-17879582
]
xiong duan commented on CALCITE-6560:
-------------------------------------
The default scale value isĀ Integer.MIN_VALUE not 0. Before this PR, some code
used -1 as the default precision and the default scale. Now the default
precision is -1 and the default scale is Integer.MIN_VALUE.
> Add supportsNegativeScale in RelDataTypeSystem
> -----------------------------------------------
>
> Key: CALCITE-6560
> URL: https://issues.apache.org/jira/browse/CALCITE-6560
> Project: Calcite
> Issue Type: Improvement
> Reporter: xiong duan
> Priority: Major
> Labels: pull-request-available
>
> [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
> supportsNegativeScale is false and will throw an exception if set
> supportsNegativeScale is true.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)