首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • sql: Creating a Delimited List from Table Rows

    8800编辑于 2026-06-18
  • 来自专栏科技前线

    升级Bash修复Shellshock漏洞

    `EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by end-of-file at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by at line 0 delimited by end-of-file (wanted `EOF') bash: warning: here-document at line 0 delimited by

    2.3K20发布于 2018-08-29
  • 来自专栏大数据分享

    (三)Hive基本操作命令

    array<string>, children map<string, int>, address struct<street:string, city:string> ) row format delimited ), MGR int, HIREDATE date, SAL decimal(10,0), COMM decimal(10,0), DEPTNO int ) row format delimited 表 CREATE EXTERNAL TABLE IF NOT EXISTS salgrade ( GRADE int, LOSAL int, HISAL int ) row format delimited terminated by ',' lines terminated by '\n'; create table t_user2(friends array<string>) row format delimited EXISTS t_user_test ( GRADE int, LOSAL int, HISAL int ) partitioned by (day string) row format delimited

    1.7K10发布于 2020-09-20
  • 来自专栏北野茶缸子的专栏

    23. R 茶话会(四:R 代码的收纳工二弟)

    Table can be delimited with tab, comma, pipe or semicolon. vector_paste which will paste delimited data Recommend Ctrl + Alt + Shift + v as shortcut. vector_paste_vertical which will paste delimited data as ", "Table can be delimited with tab, comma, pipe or semicolon. ", "vector_paste which will paste delimited data as a vector definition, e.g. c(\"a\", \"b\") etc. ", "vector_paste_vertical which will paste delimited data as a vertically formatted vector definition

    52530编辑于 2021-12-17
  • 来自专栏全栈程序员必看

    数仓分层ods_数仓用来干嘛

    `create_time` STRING COMMENT '创建时间' ) COMMENT '活动信息表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED COMMENT 'id', `name` STRING COMMENT '名称' ) COMMENT '商品一级分类表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED `category1_id` STRING COMMENT '一级品类id' ) COMMENT '商品二级分类表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED `category2_id` STRING COMMENT '二级品类id' ) COMMENT '商品三级分类表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED 'ISO-3166编码,供可视化使用', `iso_3166_2` STRING COMMENT 'IOS-3166-2编码,供可视化使用' ) COMMENT '省份表' ROW FORMAT DELIMITED

    1.2K20编辑于 2022-11-08
  • 来自专栏数据森麟

    数据分析工具篇——HQL中DDL操作

    create external table fz_external_table( id int, name string age int, tel string) ROW FORMAT DELIMITED 如果没有指定 ROW FORMAT 或者 ROW FORMAT DELIMITED,将会使用自带的 SerDe。 id int, name string, hobbies ARRAY <string>, address MAP <string, string> ) ROW FORMAT DELIMITED exists testfile_table( site string, url string, pv bigint, label string) ROW FORMAT DELIMITED sex string, sage int, sdept string) clustered by(sno) sorted by(sno DESC) into 4 buckets row format delimited

    95420发布于 2021-03-09
  • 来自专栏桥路_大数据

    ORC与Parquet表的压缩

    首先创建一个非压缩的ORC表: create table compress_orc_none ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED 然后再创建一个使用SNAPPY压缩的ORC表: create table compress_orc_snappy ROW FORMAT DELIMITED FIELDS TERMINATED BY '\ 最后,使用默认压缩格式ZLIB的ORC表,进行对比: create table compress_orc_zlib ROW FORMAT DELIMITED FIELDS TERMINATED BY ' 首先创建一张普通Parquet表,默认为Uncompressed压缩格式: create table compress_parquet_none ROW FORMAT DELIMITED FIELDS 最后创建压缩率较高,但效率较低的Gzip格式的Parquet表: create table compress_parquet_gzip ROW FORMAT DELIMITED FIELDS TERMINATED

    5.2K20发布于 2021-01-06
  • 来自专栏不温卜火

    Hive快速入门系列(9) | Hive表中数据的加载与导出

    创建第一部分表: create table score_first( s_id string,c_id string) partitioned by (month string) row format delimited 创建第二部分表: create table score_second(c_id string,s_score int) partitioned by (month string) row format delimited 创建表,并指定在hdfs上的位置 create external table score6 (s_id string,c_id string,s_score int) row format delimited 将查询的结果格式化导出到本地 insert overwrite local directory '/export/servers/exporthive' row format delimited fields 将查询的结果导出到HDFS上(没有local) insert overwrite directory '/export/servers/exporthive' row format delimited

    1.4K10发布于 2020-10-28
  • 来自专栏csico

    综合语法

    分隔注释 单行注释: // 单行注释字符选择 单行注释字符:       单行注释字符单行注释字符选择 单行-comment-character:       除换行符 以外的任何 Unicode 字符 delimited-comment : /* delimited-comment-text opt asterisks / delimited-comment-text:       delimited-comment-section delimited-comment-text opt delimited-comment-section: / asterisks选择 非斜线或星 号星号: * 星号opt not-slash-or-asterisk

    86430编辑于 2022-01-05
  • 来自专栏码的一手好代码

    Hive基础操作

    - 创建表 create table [if not exists] student( name string, age int, score int) row format delimited ename string, job string, mgr int, hiredate string, sal double, comm double, deptno int ) row format delimited string, sal double, comm double, deptno int ) PARTITIONED BY (month string, day string) row format delimited test.txt' select * from emp; # 2.定义格式 insert overwrite local directory '/opt/datas/test1.txt' ROW FORMAT DELIMITED "select * from ..." > /opt/datas/xx.txt # 4.保存到HDFS上 insert overwrite directory '' ROW FORMAT DELIMITED

    85510发布于 2019-07-24
  • 来自专栏不温卜火

    Hive项目实战系列(2) | 分析前准备(创建表与插入数据)

    创建user_text create external table user_text( uploader string, videos int, friends int) row format delimited int, rate float, ratings int, comments int, relatedId array<string> ) row format delimited int, rate float, ratings int, comments int, relatedId array<string> ) row format delimited 创建user_orc create table user_orc( uploader string, videos int, friends int) row format delimited fields

    96020发布于 2020-10-28
  • 来自专栏Lansonli技术博客

    2021年大数据Hive(三):手把手教你如何吃透Hive数据库和表操作(学会秒变数仓大佬)

    4、ROW FORMAT DELIMITED 可用来指定行分隔符 5、STORED AS  SEQUENCEFILE|TEXTFILE|RCFILE 来指定该表数据的存储格式,hive中,表的默认存储格式为  from stu; ​​​​​​​2、创建表并指定字段之间的分隔符 create  table if not exists stu3(id int ,name string) row format delimited (sid string,cid string, sscore int) partitioned by (year string,month string,day string) row format delimited 创建第一部分表: create table score_first( sid string,cid  string) partitioned by (month string) row format delimited 创建第二部分表: create table score_second(cid string,sscore int) partitioned by (month string) row format delimited

    2.3K20发布于 2021-10-11
  • 来自专栏浪淘沙

    Hive学习

    4.创建外部表 create external table t_access(ip String,url String,accesstime String )     row format delimited table t_accc(id String,url String,access_time String)     partitioned by(dt String)     row format delimited 导出数据     1)将hive表中的数据导入HDFS的文件 insert overwrite directory '/root/access-data'         row format delimited as parquetfile          create table t_table(ip string,url string,sccess_time string)     row format delimited   create table t_movie(movie_name string,actors array<string>,first_data string)     row format delimited

    1.4K20发布于 2018-10-18
  • 来自专栏最新最全的大数据技术体系

    Hive 基本操作(创建数据库与创建数据库表)

    4、ROW FORMAT DELIMITED [FIELDS TERMINATED BY char] [COLLECTION ITEMS TERMINATED BY char] [MAP KEYS TERMINATED 如果没有指定 ROW FORMAT 或者 ROW FORMAT DELIMITED,将会使用自带的 SerDe。 分别创建老师与学生表外部表,并向表中加载数据 创建老师表: create external table techer (t_id string,t_name string) row format delimited create external table student (s_id string,s_name string,s_birth string , s_sex string ) row format delimited external table score4(s_id string, c_id string,s_score int) partitioned by (month string) row format delimited

    6.8K50发布于 2021-04-09
  • 来自专栏Lansonli技术博客

    数据治理(十):Atlas案例演示

    CUR_LOGIN_TM` string, `PAY_SW` string, `LANG` int, `SONG_WHSE_TYPE` int, `SCR_TYPE` int) ROW FORMAT DELIMITED LAT` string, `ADDR` string, `ADDR_FMT` string, `REV_TM` string, `SALE_TM` string) ROW FORMAT DELIMITED `STORE_ID` int, `MID` int, `PRDCT_TYPE` int, `ADMINID` int, `CREAT_TM` string ) ROW FORMAT DELIMITED CREATE EXTERNAL TABLE `TO_YCBK_CITY_D`( `PRVC_ID` int, `CTY_ID` int, `CTY` string ) ROW FORMAT DELIMITED CREATE EXTERNAL TABLE `TO_YCBK_AREA_D`( `CTY_ID` int, `AREA_ID` int, `AREA` string ) ROW FORMAT DELIMITED

    82932编辑于 2022-04-28
  • 来自专栏javascript趣味编程

    升级package.json中的包

    Supports strings, wildcards, globs, comma-or-space-delimited lists, and regular expressions: # upgrade dev, optional, peer, prod, bundle (comma-delimited package names matching the given string, wildcard, glob, comma-or-space-delimited filterVersion <matches> Filter on package version using comma-or-space-delimited format <value> Enable additional output data, string or comma-delimited

    2K30发布于 2021-09-30
  • 来自专栏全栈程序员必看

    数仓搭建ODS层_中心仓模式

    `create_time` STRING COMMENT '创建时间' ) COMMENT '活动信息表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED `benefit_level` STRING COMMENT '优惠级别' ) COMMENT '活动规则表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED `operate_time` STRING COMMENT '操作日期' ) COMMENT '编码字典表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED ( `id` STRING COMMENT '编号', `region_name` STRING COMMENT '地区名称' ) COMMENT '地区表' ROW FORMAT DELIMITED '编号', `tm_name` STRING COMMENT '品牌名称' ) COMMENT '品牌表' PARTITIONED BY (`dt` STRING) ROW FORMAT DELIMITED

    1.2K10编辑于 2022-11-08
  • 来自专栏张浩的专栏

    Hive的数据模型

    '/mytable/hive/t2'; 指定列分隔符 CREATE TABLE t3( tid int, tname string, age int ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','; 从已有的表创建并指定分隔符为逗号 CREATE TABLE t4 ROW FORMAT DELIMITED FIELDS TERMINATED BY CREATE TABLE partition_table( sid int, sname string )PARTITIONED BY (gender string) ROW FORMAT DELIMITED 创建外部表 CREATE EXTERNAL TABLE external_student( sid int, sname string, age int ) ROW FORMAT DELIMITED

    1.4K10发布于 2018-12-16
  • 来自专栏大数据成长之路

    Hive中的复合数据类型

    chengdu,wuhan,haerbin create table complex_array(name string,work_locations array<string>) row format delimited 非常喜欢‐篮球:不喜欢 建表语句: create table complex_map(id int,name string,hobby map<string,string>) row format delimited table complex_map; 以普通字符串映射: create table complex_map_s(id int,name string,hobby string) row format delimited 20 4,li:80 建表语句: create table complex_struct(id int, info struct<name:STRING, age:INT>) ROW FORMAT DELIMITED

    93940发布于 2021-01-26
  • 来自专栏java编程那点事

    Hive的数据模型

    都保存在这个目录中 删除表时,元数据与数据都会被删除 // 创建一张内部表 每行字段以什么分割 create table tt (id int,name string,age int) row format delimited 以部门编号为分区,每行字段逗号分割 create table tt (id int,name string,age int) partitioned by (pno int) row format delimited 当删除一个外部表时,仅删除该链接 // 创建外部表 create external table ex_tt (id int, name string, age int) row format delimited create table tt_bucket (id int, name string, age int) clustered by (age) into 4 buckets row format delimited

    60010编辑于 2023-02-25
领券