[ 
https://issues.apache.org/jira/browse/FLINK-24567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429836#comment-17429836
 ] 

Jark Wu commented on FLINK-24567:
---------------------------------

[~airblader], I think it just derives the schema, but still need users to fill 
the options, for example:

{code}
CREATE TABLE fs_sink
WITH (
  'connector' = 'filesystem'
 'path' = '/path/to/file'
) AS SELECT * FROM source;
{code}

There is a discuss thread for the CTAS syntax as well: 
https://lists.apache.org/thread.html/rbb7ff8b0d55a6f59470704f59099904c6316a11db00c329a0d1a86d8%40%3Cdev.flink.apache.org%3E

> Support create tables using CatalogView defination
> --------------------------------------------------
>
>                 Key: FLINK-24567
>                 URL: https://issues.apache.org/jira/browse/FLINK-24567
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>            Reporter: Xianxun Ye
>            Priority: Major
>
> Now when we run this sql will throw a ValidationException
> {code:java}
> sql("create view vi as select * from slothTest.testdb.animal");
> sql("CREATE TABLE print_table WITH ('connector' = 'blackhole') LIKE vi 
> (EXCLUDING ALL)");
> {code}
> {code:java}
> org.apache.flink.table.api.ValidationException: Source table 
> '`default_catalog`.`default_database`.`vi`' of the LIKE clause can not be a 
> VIEW, at line 1, column 60
> {code}
> Create table from some views during running a perfermence test job could be 
> usefull. 
>  hello [~dwysakowicz] what do you think about this feature?



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

Reply via email to