Flink整合hive之后,通过flink创建的表,hive beeline可见表,不可见字段?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Flink整合hive之后,通过flink创建的表,hive beeline可见表,不可见字段?

felixzh
参照文档https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/hive/#connecting-to-hive
通过flink创建表:CREATE TABLE Orders (product STRING, amount INT)
在beeline端可见表,但是desc看不到字段,select * from orders也不可用

Reply | Threaded
Open this post in threaded view
|

Re: Flink整合hive之后,通过flink创建的表,hive beeline可见表,不可见字段?

Jingsong Li
默认创建的是Flink表,Hive端不可见。
你想创建Hive表的话,用Hive dialect。

Best,
Jingsong

On Tue, Jul 21, 2020 at 11:31 AM felixzh <[hidden email]> wrote:

> 参照文档
> https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/hive/#connecting-to-hive
> 通过flink创建表:CREATE TABLE Orders (product STRING, amount INT)
> 在beeline端可见表,但是desc看不到字段,select * from orders也不可用
>
>

--
Best, Jingsong Lee