You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by felixzh <fe...@126.com> on 2020/07/21 03:31:27 UTC

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

参照文档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也不可用


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

Posted by Jingsong Li <ji...@gmail.com>.
默认创建的是Flink表,Hive端不可见。
你想创建Hive表的话,用Hive dialect。

Best,
Jingsong

On Tue, Jul 21, 2020 at 11:31 AM felixzh <fe...@126.com> 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