You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "xiong duan (Jira)" <ji...@apache.org> on 2024/09/06 13:01:00 UTC
[jira] [Resolved] (CALCITE-6565) Invalid unparse for CHAR without precision in MssqlSqlDialect
[ https://issues.apache.org/jira/browse/CALCITE-6565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xiong duan resolved CALCITE-6565.
---------------------------------
Fix Version/s: 1.38.0
Resolution: Fixed
> Invalid unparse for CHAR without precision in MssqlSqlDialect
> -------------------------------------------------------------
>
> Key: CALCITE-6565
> URL: https://issues.apache.org/jira/browse/CALCITE-6565
> Project: Calcite
> Issue Type: Improvement
> Affects Versions: 1.37.0
> Reporter: xiong duan
> Priority: Major
> Fix For: 1.38.0
>
>
> Execute SQL :
> {code:java}
> select cast(product_id as char) from product
> {code}
> Expected Mssql SQL should be:
> {code:java}
> SELECT CAST([product_id] AS CHAR) FROM [foodmart].[product]
> {code}
> But is:
> {code:java}
> SELECT CAST([product_id] AS CHAR(1)) FROM [foodmart].[product]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)