标签:int apr start .exe term tab orm nat city
set mapreduce.job.queuename=root.kg;
set hive.exec.dynamic.partition.mode=nonstrict;
drop table if exists kg_fk_city;
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);
标签:int apr start .exe term tab orm nat city
原文地址:https://www.cnblogs.com/hapyygril/p/10737317.html