[ 
https://issues.apache.org/jira/browse/CALCITE-6919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yu Xu updated CALCITE-6919:
---------------------------
    Description: 
eg:
{code:java}
select cast(product_id as char) from product {code}
expected:
{code:java}
select cast(product_id as char) from product {code}
but was:
{code:java}
select cast(product_id as char(1)) from product  {code}
 

need to fix the cast logical

  was:
eg:
{code:java}
select cast(product_id as char) from product {code}
expected:
{code:java}
select cast(product_id as char) from product {code}
but was:
{code:java}
select cast(product_id as char(1)) from product  {code}


> Invalid unparse for CHAR without precision in PostgreSQL
> --------------------------------------------------------
>
>                 Key: CALCITE-6919
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6919
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.39.0
>            Reporter: Yu Xu
>            Assignee: Yu Xu
>            Priority: Major
>             Fix For: 1.40.0
>
>
> eg:
> {code:java}
> select cast(product_id as char) from product {code}
> expected:
> {code:java}
> select cast(product_id as char) from product {code}
> but was:
> {code:java}
> select cast(product_id as char(1)) from product  {code}
>  
> need to fix the cast logical



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to