[
https://issues.apache.org/jira/browse/CALCITE-6654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030197#comment-18030197
]
Mihai Budiu commented on CALCITE-6654:
--------------------------------------
I expect a DECIMAL or NUMERIC type (without any arguments) to create a type of
DECIMAL(p, 0), where p is the "default precision" for DECIMAL in the current
type system.
Alternatively, Calcite has a PRECISION_NOT_SPECIFIED value; maybe that's the
one that should be used (but that's not 0).
> Postgres NUMERIC type leads to "DECIMAL precision 0 must be between 1 and 19"
> -----------------------------------------------------------------------------
>
> Key: CALCITE-6654
> URL: https://issues.apache.org/jira/browse/CALCITE-6654
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.38.0
> Reporter: Ulrich Kramer
> Priority: Major
>
> Tying to query a VIEW in Postgres, which has one column of type NUMERIC,
> leads to the error
> {noformat}
> DECIMAL precision 0 must be between 1 and 19 {noformat}
> The corresponding precision metadata column in postgres contains a NULL value.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)