hive 常用命令

alter table table_name set TBLPROPERTIES('EXTERNAL'='FALSE');

alter table yum_area_ods.ods_full_city_mapping add columns(taco_city_code string comment 'taco城市code') cascade;

alter table yum_area_ods.ods_full_city_mapping SET SERDEPROPERTIES('serialization.null.format' = '\\N');

msck repair table table_name;


alter table sds.dws_sds_reweight_appeal_count change column appeal_count appeal_count int;


删除重建表步骤:

alter table table_name set TBLPROPERTIES('EXTERNAL'='FALSE');
drop table table_name;

CREATE EXTERNAL TABLE if not exist

 

查看表分区字段类型:

desc table_name partition(inc_day = 20220228)

查看表分区路径:

desc formatted sds.sds_dws_dist_grow_rank_mi partition(inc_month=202202);

posted @   guoyu1  阅读(42)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2020-01-19 volatile关键字
点击右上角即可分享
微信分享提示