[ 
https://issues.apache.org/jira/browse/CALCITE-814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639918#comment-14639918
 ] 

Julian Hyde commented on CALCITE-814:
-------------------------------------

Looks like a serious bug. I wondered why we'd not hit it before, but that line 
of code is not hit in Calcite's test suite. I guess SqlToRelConverter uses a 
different code path to create literals.

> RexBuilder wrongly uses createSqlType to create Decimal relType
> ---------------------------------------------------------------
>
>                 Key: CALCITE-814
>                 URL: https://issues.apache.org/jira/browse/CALCITE-814
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Julian Hyde
>
> RexBuilder L850
> {code}
>  typeFactory.createSqlType(
>               SqlTypeName.DECIMAL, scale, precision);
> {code}
> However, the createSqlType is accepting
> {code}
> RelDataType createSqlType(
>       SqlTypeName typeName,
>       int precision,
>       int scale);
> {code}
> Need to swap the precision and scale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to