You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ingo Bürk (Jira)" <ji...@apache.org> on 2021/10/15 12:26:00 UTC
[jira] [Commented] (FLINK-24567) Support create tables using
CatalogView defination
[ https://issues.apache.org/jira/browse/FLINK-24567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429257#comment-17429257 ]
Ingo Bürk commented on FLINK-24567:
-----------------------------------
I don't understand what this is supposed to mean / how it should work. A view is backed by a query expression, a table is not. Why not create print_table as another view?
> 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)