You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "翟玉勇 (JIRA)" <ji...@apache.org> on 2018/03/14 07:59:00 UTC
[jira] [Created] (HIVE-18954) insert hive storage handler table
from a parquet table error
翟玉勇 created HIVE-18954:
--------------------------
Summary: insert hive storage handler table from a parquet table error
Key: HIVE-18954
URL: https://issues.apache.org/jira/browse/HIVE-18954
Project: Hive
Issue Type: Bug
Components: StorageHandler
Affects Versions: 2.1.0
Reporter: 翟玉勇
{code}
drop table if exists temp.temp_dw_sia_jc_kpa7_brand_factor_list_week;
create table temp.temp_dw_sia_jc_kpa7_brand_factor_list_week(
`brand_id` bigint,
`brand_name` string,
`reason_key` string,
`reason_value` double ,
`reason_imp_order_num` double ,
`data_type` string ,
`biz_date` string
)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES (
'es.resource'='index/type',
'es.nodes'='',
'es.port'='9200',
'es.nodes.wan.only'='true',
'es.index.translog.flush_threshold_size'='3gb',
'es.index.translog.interval'='60s',
'es.index.translog,sync_interval'='60s',
'index.translog.durability'='async'
);
insert overwrite table temp.temp_dw_sia_jc_kpa7_brand_factor_list
select
now_brand_id as brand_id,
now_brand_name as brand_name,
factor as reason_key,
value as reason_value,
value_order as reason_imp_order_num,
model as data_type,
biz_date
from dw.dw_jc_kpa7_brand_factor_list
where dt = '123'
and value is not null and value_order is not null and model is not null;
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)