hive与pg 爆炸函数

hive与pg 爆炸函数

hive explode

sql 复制代码
select explode(array('A','B','C')); 

结果展示为三列

pg unnest

sql 复制代码
SELECT unnest(ARRAY['A', 'B', 'C']) AS element;

select regexp_split_to_table('飞机,火车,地铁,汽车',  ',' ) 

select (regexp_split_to_array('飞机,火车,地铁,汽车',  ',' ))[1]  
相关推荐
Decay__1 天前
PostgreSQL 性能调优方法论 —— pg_stat_statements、EXPLAIN ANALYZE、瓶颈定位流程与参数基线
运维·数据库·sql·postgresql
csdn_aspnet1 天前
使用 Docker 配置 PostgreSQL 和 pgAdmin 4
数据库·docker·postgresql·pgadmin4
衡石科技1 天前
二十多种数据源接进来:适配层、方言重写与 ETL 管道工程
数据仓库·etl·数据集成
Decay__1 天前
PostgreSQL 高可用与容灾架构 —— 流复制、Patroni、Keepalived+VIP、读写分离与两地三中心
运维·数据库·sql·postgresql
Decay__2 天前
PostgreSQL WAL 归档与时间点恢复 —— WAL 连续归档、recovery_target 时点恢复与 pg_rewind
运维·数据库·sql·postgresql
Decay__2 天前
PostgreSQL 索引与 SQL 优化 —— B-tree、GiST、GIN、BRIN、执行计划与索引设计实战
运维·数据库·sql·postgresql
skywalk81632 天前
lightharness第一次大规模开hive任务卡成功
人工智能·hive·agent·deepseek·lightharness
Decay__2 天前
PostgreSQL 内存与锁调优 —— shared_buffers、work_mem、MVCC 与锁等待排查
运维·数据库·sql·postgresql
大今野2 天前
2026 专转本计算机|大数据关键技术:Hadoop、MapReduce、NoSQL 与处理流程(附例题)
大数据·hadoop·mapreduce·专转本
SeanQhl3 天前
鲲鹏开发套件综合实战
hadoop·性能调优·openeuler·鲲鹏devkit·应用迁移