HIVE:插入覆盖Parquet表错误

时间:2018-05-17 10:30:41

标签: hive parquet

我只是做了这样一个简单的查询,但出现了somme异常。

insert overwrite table stage_dfqp.user_currency partition (dt='2018-05-16')
select fuid,
       fbpid,
       fgamefsk
  from stage_dfqp.pb_gamecoins

enter image description here 但是当我像这样更改查询时(只是添加限制XXX)异常消失

insert overwrite table stage_dfqp.user_currencypartition (dt='2018-05-16')
select fuid,
       fbpid,
       fgamefsk
  from stage_dfqp.pb_gamecoins limit 100

Hive表格信息:

CREATE TABLE `stage_dfqp.user_currency`(
  `fuid` bigint , 
  `coin_type` string , 
  `coin_num` bigint
)
PARTITIONED BY ( 
  `dt` string)
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'

0 个答案:

没有答案