Hive serde评论未显示在文档部分

时间:2016-04-12 22:20:43

标签: hadoop hive avro

当我们为Avro文件格式创建Hive表时,在检查desc表时不会显示注释。它显示为

  

“来自反序列化程序”

表DDL:

    CREATE EXTERNAL TABLE bs_rev_profit_by_campaign 
(revenue DOUBLE, grossprofit DOUBLE, campaignName STRING)  
COMMENT "A table backed by Avro data with the Avro schema embedded in the CREATE TABLE statement" 
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.avro.AvroSerDe' 
STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' 
  OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat' 
LOCATION '/home/biadmin/test_data/avro/' 
TBLPROPERTIES 
  ('avro.schema.literal'=
     '{"type": "record","name": "TUPLE_3",
      "fields": [ 
{"name": "Revenue","type": ["null", "double" ],"doc": "autogenerated from Pig Field Schema"}, 
{"name": "GrossProfit","type": ["null", "double" ],"doc": "autogenerated from Pig Field Schema"}, 
{"name": "CampaignName", "type": ["null", "string" ],"doc": "autogenerated from Pig Field Schema"} ]}'  
);     

我们正在使用hive 1.1。任何人都可以帮助我知道原因。

0 个答案:

没有答案