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

Shuo Cheng updated FLINK-29990:
-------------------------------
    Description: 
Consider the following DDL sql:
{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.

  was:
Consider the following DDL sql:
{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, when you trying to parse the above sql.


> 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
>            Priority: Minor
>             Fix For: 1.17.0
>
>
> Consider the following DDL sql:
> {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