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

Maciej Bryński updated FLINK-22967:
-----------------------------------
    Fix Version/s: 1.13.1

> CodeGenException: Unsupported cast for nested Decimals
> ------------------------------------------------------
>
>                 Key: FLINK-22967
>                 URL: https://issues.apache.org/jira/browse/FLINK-22967
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Runtime
>    Affects Versions: 1.12.2
>            Reporter: Maciej Bryński
>            Priority: Major
>             Fix For: 1.13.1
>
>
> This query is failing in SQL Client
> {code:java}
> Flink SQL> CREATE TABLE abc (
> >     test ROW<a ARRAY<ROW<id STRING, amount DECIMAL(18, 4) >>>
> > ) WITH ( 'connector' = 'datagen');
> [INFO] Table has been created.
> Flink SQL> select * from abc;
> [ERROR] Could not execute SQL statement. Reason:
> org.apache.flink.table.planner.codegen.CodeGenException: Unsupported cast 
> from 'ROW<`a` ARRAY<ROW<`id` STRING, `amount` DECIMAL(18, 4)>>>' to 'ROW<`a` 
> ARRAY<ROW<`id` STRING, `amount` DECIMAL(38, 18)>>>'.
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to