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

Sergey Nuyanzin updated FLINK-36266:
------------------------------------
    Description: 
For instance if there are 2 tables
{code:sql}
t(f0: INT, f1: INT)
t1(f0: INT)
t2(f0: INT, f1: INT)

{code}
then these queries fail
{code:sql}
INSERT INTO t(f0, f1) SELECT * FROM t2;
INSERT INTO t(f0, f1) SELECT 42, * FROM t1;
INSERT INTO t(f0, f1) SELECT *, 42 FROM t1;
{code}


  was:
For instance if there are 2 tables
{code:sql}
t(f0: INT, f1: INT)
t1(f0: INT)
t2(f0: INT, f1: INT)

{code}
then these queries fail
{code:sql}
INSERT INTO t(f0, f1) SELECT * FROM t2;
INSERT INTO t(f0, f1) SELECT 42, * FROM t1;
INSERT INTO t(f0, f1) SELECT *, 42 FROM t1;
{code}
fails 


> Insert into as select * behaves incorrect
> -----------------------------------------
>
>                 Key: FLINK-36266
>                 URL: https://issues.apache.org/jira/browse/FLINK-36266
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>
> For instance if there are 2 tables
> {code:sql}
> t(f0: INT, f1: INT)
> t1(f0: INT)
> t2(f0: INT, f1: INT)
> {code}
> then these queries fail
> {code:sql}
> INSERT INTO t(f0, f1) SELECT * FROM t2;
> INSERT INTO t(f0, f1) SELECT 42, * FROM t1;
> INSERT INTO t(f0, f1) SELECT *, 42 FROM t1;
> {code}



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

Reply via email to