hive建表语句(不同的数据存储格式,包括txt、orc、分区)
来源:互联网 发布:知你莫如我 编辑:程序博客网 时间:2024/06/09 06:18
create table sx_360_safe.sx_ela_bp_info
(
id_ela_bp_info string
,code string
,agent_no string
,operation_time string
,product_no string
,info_no string
,created_by string
,created_date string
,updated_by string
,updated_date string
,openid string
,page string
)
row format delimited fields terminated by '\t' lines terminated by '\n' stored as textfile;
----delimited fields terminated by '\t' 通过'\t'分割字段
----lines terminated by '\n' 通过'\n'结束一行字段
------------------------------------------------------------------
分隔符
------------------------------------------------------------------
use sx_360_safe;
create table sx_360_safe.agg_lbk_toapp_bussiness_app_wide
(
calc_date string ,
branch0_code string ,
branch0_name string ,
branch1_code string ,
branch1_name string ,
branch2_code string ,
branch2_name string ,
branch3_code string ,
branch3_name string ,
title string ,
measures_code string ,
measures_name string ,
sum_data_day decimal(38,10) ,
sum_data_month decimal(38,10) ,
sum_data_year decimal(38,10) ,
data_lastyear_d decimal(38,10) ,
data_lastyear_m decimal(38,10) ,
data_lastyear_y decimal(38,10) ,
day_inc decimal(38,10) ,
month_inc decimal(38,10) ,
year_inc decimal(38,10) ,
month_comple_deno decimal(38,10),
year_comple_deno decimal(38,10),
month_comple decimal(38,10) ,
year_comple decimal(38,10) ,
data_day_sor string ,
data_month_sor string ,
data_year_sor string ,
day_inc_sor string ,
month_inc_sor string ,
year_inc_sor string ,
month_comple_sor string ,
year_comple_sor string ,
system_order_fm string
)
partitioned by (day string)
row format delimited fields terminated by '\001' stored as TEXTFILE ;
------------------------------------------------------------------
分隔符
------------------------------------------------------------------
use sx_360_safe;
create table sx_360_safe.dim_olp_bank_table_grade_l
(
branch_grade decimal(38,0) ,
branch0_code string ,
branch0_name string ,
branch1_code string ,
branch1_name string ,
branch2_code string ,
branch2_name string ,
branch3_code string ,
branch3_name string ,
branch4_code string ,
branch4_name string ,
branch5_code string ,
branch5_name string ,
branch6_code string ,
branch6_name string
)
stored as orcfile;
- hive建表语句(不同的数据存储格式,包括txt、orc、分区)
- hive建表语句(包括txt、Orc和分区)
- Hive-ORC文件存储格式(续)
- hive建表语句
- Hadoop 从零开始学习系列-hive从元数据生成表结构、分区等建表语句
- hive ORC 文件存储格式
- Hive-ORC文件存储格式
- hive不同分区不同存储格式
- 如何生成hive的建表语句(批量)
- hive表的存储格式; ORC格式的使用
- Hive:ORC与RC存储格式之间的区别
- 获取hive建表语句
- 【hive】如何获取hive建表语句(转载)
- Hive数据导入方案—使用ORC格式存储hive数据
- Hive:ORC File Format存储格式详解
- Hive:ORC File Format存储格式详解
- hive 压缩全解读(hive表存储格式以及外部表直接加载压缩格式数据);HADOOP存储数据压缩方案对比(LZO,gz,ORC)
- 如何获取hive建表语句(转载)
- CMD命令窗口中文乱码问题的解决
- IOS中的NSString与NSArray的互转
- LeetCode--Invert Binary Tree (反转二叉树)Python
- .NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
- 宿主机通过FTP 向KVM虚拟机传文件
- hive建表语句(不同的数据存储格式,包括txt、orc、分区)
- 算法导论(第三版)22.3-6
- Android Service最全面的解析
- 自顶向下,逐步求精
- 数据结构上机指导
- 存放 用户登录信息的 Application的 基本语句
- powerdesigner 使用总结
- AIX重启samba服务
- Android中的缓存策略--DiskLruCache