[
https://issues.apache.org/jira/browse/CALCITE-7069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17985659#comment-17985659
]
Mihai Budiu commented on CALCITE-7069:
--------------------------------------
This is not the right solution; the right solution is to produce an error.
You cannot produce a program that gives a different result.
> Invalid unparse for INT UNSIGNED and BIGINT UNSIGNED in MysqlSqlDialect
> ------------------------------------------------------------------------
>
> Key: CALCITE-7069
> URL: https://issues.apache.org/jira/browse/CALCITE-7069
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.40.0
> Reporter: ZheHu
> Assignee: ZheHu
> Priority: Minor
>
> After CALCITE-1466, we support UNSIGNED INT and UNSIGNED BITINT types,
> however, in MySQL, cast(1 as INT UNSIGNED) or cast(1 as BIGINT UNSIGNED) is
> not legal, we should convert it to forms like cast(1 as UNSIGNED).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)