set mapreduce.job.queuename=root.kg;
set hive.exec.dynamic.partition.mode=nonstrict;


drop table if exists kg_fk_city;

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 

set mapreduce.job.queuename=root.kg;
set hive.exec.dynamic.partition.mode=nonstrict;
create table kg_fk_city(
start_id bigint,
end_id bigint
)
row format delimited fields terminated by '\t';

 


set mapreduce.job.queuename=root.kg;
set hive.exec.dynamic.partition.mode=nonstrict;
load data local inpath '/home/kg/qiaoruihua/hive_test/city/city.txt' into table kg_fk_city;


set mapreduce.job.queuename=root.kg;
set hive.exec.dynamic.partition.mode=nonstrict;
select count(start_id) from kg_fk_city where hex(start_id)<hex(end_id);

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄