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

Benchao Li closed FLINK-29990.
------------------------------
      Assignee: Shuo Cheng
    Resolution: Fixed

Fixed via 
[https://github.com/apache/flink/commit/dd76844342489a252f8b76417090f137028af0bc]
 

[~icshuo] thanks for reporting and fixing this.

> Unparsed SQL for SqlTableLike cannot be parsed correctly
> --------------------------------------------------------
>
>                 Key: FLINK-29990
>                 URL: https://issues.apache.org/jira/browse/FLINK-29990
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.16.0
>            Reporter: Shuo Cheng
>            Assignee: Shuo Cheng
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.17.0
>
>
> Consider the following DDL sql (LIKE without any options):
> {code:java}
> create table source_table(
>   a int,
>   b bigint,
>   c string
> )
> LIKE parent_table{code}
> After unparsed by sql parser, we get the following result:
> {code:java}
> CREATE TABLE `SOURCE_TABLE` (
>   `A` INTEGER,
>   `B` BIGINT,
>   `C` STRING
> )
> LIKE `PARENT_TABLE` (
> ) {code}
> Exception will be thrown if you try to parse the above sql.



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

Reply via email to