尔尔辞挽

导航

随笔分类 -  数仓必备

hive中的行转列
摘要:1、建表 create table tmp_test (col1 string, col2 string, bian string) row format delimited fields terminated by '\t' stored as textfile; 2、构建测试数据 vi row_ 阅读全文

posted @ 2023-02-15 16:03 尔尔辞挽 阅读(179) 评论(0) 推荐(0)

时间维表的建立
摘要:-- 建表create table if not exists crisps_dim.dim_com_date_info ( cur_date date comment '自然日期', yes_date string comment '昨日', tom_date string comment '明日 阅读全文

posted @ 2022-12-22 14:01 尔尔辞挽 阅读(73) 评论(0) 推荐(0)