[
https://issues.apache.org/jira/browse/CALCITE-6919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yu Xu updated CALCITE-6919:
---------------------------
Description:
In postgresql cast char with out precision would be char(1)
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}
need to fix the cast logical
> 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
> Labels: pull-request-available
> Fix For: 1.40.0
>
>
> In postgresql cast char with out precision would be char(1)
> 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)