You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "hehuiyuan (Jira)" <ji...@apache.org> on 2022/07/30 07:24:00 UTC
[jira] [Created] (FLINK-28750) Whether to add comment for hive table
hehuiyuan created FLINK-28750:
---------------------------------
Summary: Whether to add comment for hive table
Key: FLINK-28750
URL: https://issues.apache.org/jira/browse/FLINK-28750
Project: Flink
Issue Type: Improvement
Reporter: hehuiyuan
Currently, I have a hive ddl,as follows
{code:java}
"set table.sql-dialect=hive;\n" +
"CREATE TABLE IF NOT EXISTS myhive.dev.shipu3_test_1125 (\n" +
" `id` int COMMENT 'iadddd',\n" +
" `cartdid` bigint COMMENT 'aaa',\n" +
" `customer` string COMMENT 'vvvv',\n" +
" `product` string COMMENT 'cccc',\n" +
" `price` double COMMENT '',\n" +
" `dt` STRING COMMENT ''\n" +
") PARTITIONED BY (dt STRING) STORED AS TEXTFILE TBLPROPERTIES (\n" +
" 'streaming-source.enable' = 'false',\n" +
" 'streaming-source.partition.include' = 'all',\n" +
" 'lookup.join.cache.ttl' = '12 h'\n" +
")"; {code}
It is parsed as SqlCreateHiveTable by hive dialect parser. But the field commet is lost.
!image-2022-07-30-15-21-58-062.png|width=568,height=283!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)