当前位置:网站首页>Container -- reverse content -- use of explosion, splicing, and inversion functions
Container -- reverse content -- use of explosion, splicing, and inversion functions
2022-06-11 13:37:00 【Big data Xiao Chen】
Question 1 : Reverse comma separated data : Change the order , The content remains the same

select a,concat_ws(",",collect_list(reverse(str)))
from (
select a,str from t1 lateral view explode(split(reverse(a),",")) t as str ) tmp1
group by a;Question two : Reverse comma separated data : Change content , The order is the same

select a,concat_ws(",",collect_list(reverse(str)))
from ( select a,str from t1 lateral view explode(split(a,",")) t as str ) tmp1
group by a;边栏推荐
- 【信号去噪】基于稀疏性 (BEADS) 实现色谱基线估计和去噪附matlab代码和论文
- Each of D is inconsistent with the map
- How does go reduce supply chain attacks?
- Variable parameter expression
- InfoQ 极客传媒 15 周年庆征文|移动端开发之动态排行【MUI+Flask+MongoDB】
- Why does each running Department display that the database already exists, delete the database, and then succeed? Each running department must delete the database, and re run the whole successfully
- Terraformer importing cloud resources
- Hashicopy之nomad应用编排方案06(配置task)
- 六.开发记录之实验室服务器LXD部署
- [Multisim Simulation] 555 flash lamp experiment
猜你喜欢

AGV robot RFID sensor ck-g06a and Siemens 1200plc Application Manual

Live share experience

Collapse expression

cadence SPB17.4 - allegro - allegro_free_viewer

如何写出高性能代码(四)优化数据访问

Three level classification display

cadence SPB17.4 - group operation(add to group, view group list, delete group)

BS-XX-007基于JSP实现户籍管理系统

InfoQ 极客传媒 15 周年庆征文|移动端开发之动态排行【MUI+Flask+MongoDB】

关于分布式锁的续命问题——基于Redis实现的分布式锁
随机推荐
Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)
How about NFT market? Why is NFT so popular? How to build NFT platform
How can tampermonkey replace flash player with H5 player?
Pki/tls Swiss Army knife cfssl
On the life extension of distributed locks -- redis based distributed locks
【Multisim仿真】555闪灯实验
What do you need to do to "surpass" the general database in the time sequence scenario?
Huawei HECs ECS is used to build a telegraf+influxdb+grafana monitoring system [Huawei cloud to jianzhiyuan]
Hashicopy之nomad应用编排方案07(提交Job)
Nomad application layout scheme 07 of hashicopy (submit job)
SQL: how to use the data of purchase order and sales order to calculate commodity cost by moving weighted average method
Is byte really the end of the universe?
长连接简介
Terraformer导入云上资源
AGV机器人RFID传感器CK-G06A与西门子1200PLC应用手册
How does Cassandra, an open source database giant, tell a "new story" in China? Face to face
Terraform + Ansible实现基础设施及配置管理
cadence SPB17.4 - group operation(add to group, view group list, delete group)
kubernetes 二进制安装(v1.20.15)(七)加塞一个工作节点
关于#php#的问题:php写的原来的部署环境是在phpstudy里面进行部署的,php+MySQL+Apache但是由于每次都得保证电脑开着