xiong duan created CALCITE-6423:
-----------------------------------
Summary: Invalid unparse for CHAR without precision in MySQLDialect
Key: CALCITE-6423
URL: https://issues.apache.org/jira/browse/CALCITE-6423
Project: Calcite
Issue Type: Improvement
Affects Versions: 1.37.0
Reporter: xiong duan
Assignee: xiong duan
Fix For: 1.38.0
As code review comment in [https://github.com/apache/calcite/pull/3799.]
Execute SQL :
{code:java}
select cast(product_id as char) from product{code}
Exppected MySQL SQL should be:
{code:java}
select cast(product_id as char) from product{code}
But is:
{code:java}
select cast(product_id as char(1)) from product{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)