You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jingsong Lee (Jira)" <ji...@apache.org> on 2019/12/27 08:27:00 UTC
[jira] [Commented] (FLINK-15404) How to insert hive table in
streaming mode and blink planner
[ https://issues.apache.org/jira/browse/FLINK-15404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004005#comment-17004005 ]
Jingsong Lee commented on FLINK-15404:
--------------------------------------
Yes, you are right, hive dimension table has not been well supported.
> How to insert hive table in streaming mode and blink planner
> ------------------------------------------------------------
>
> Key: FLINK-15404
> URL: https://issues.apache.org/jira/browse/FLINK-15404
> Project: Flink
> Issue Type: Wish
> Components: Table SQL / Planner
> Reporter: hehuiyuan
> Priority: Major
>
> I have a hive catalog :
>
> {code:java}
> catalog name : myhive
> database : default
> {code}
>
> and the flink has a default catalog :
>
> {code:java}
> catalog name : default_catalog
> database : default_database
> {code}
>
> For example :
> I have a source table 'source_table' that's from kafka which is register to default_catalog,
> I want to insert hive table 'hive_table' that is from myhive catalog.
> SQL:
> insert into hive_table select * from source_table;
>
> And if if the data of hive table has changed, flink is not found.
> SQL:
> tableEnv.sqlUpdate("insert into myhive.`default`.stafftest select * from default_catalog.default_database.source_table");
--
This message was sent by Atlassian Jira
(v8.3.4#803005)