[
https://issues.apache.org/jira/browse/CALCITE-7314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
chenjunjie updated CALCITE-7314:
--------------------------------
External issue URL: https://github.com/apache/calcite/pull/4666
Flags: Patch (was: Important)
Labels: (was: pull-request-available)
> SQL type NUMERIC is not equivalent to DECIMAL type in Java
> ----------------------------------------------------------
>
> Key: CALCITE-7314
> URL: https://issues.apache.org/jira/browse/CALCITE-7314
> Project: Calcite
> Issue Type: Bug
> Components: babel
> Affects Versions: 1.39.0
> Reporter: chenjunjie
> Priority: Major
> Fix For: 1.42.0
>
>
> The SQL:
> {code:java}
> SELECT x::numeric FROM (VALUES ('1', '2')) as tbl(x, y) {code}
> Calcite JDBC should be return column Type:
> {code:java}
> 2 //It represents NUMERIC in the Types.java file {code}
> But is:
> {code:java}
> 3 //It represents DECIMAL in the Types.java file {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)