- 博客(4)
- 收藏
- 关注
原创 sql 中 group by 1,2,3,4 order by 5 是什么意思呢
这里的 group by 后的 1,2,3 其实就是select后的第1,2,3列名,就是 live_place,gender,education_info。order by 后的 4 就是 cnt。子句用于将查询结果按一个或多个列进行分组。SQL 标准允许使用列的数字位置来参考这些列。
2024-08-02 17:59:22 125
原创 sql计算YOY时分子分母都有数据,但是结果为0问题
先用cast(字段 as decimal) 进行类型转换,然后再进行计算。架构背景:问题发生在metabase制作看板的sql中,大数据架构为阿里云。分子分母的数据类型为bigint。
2024-01-19 10:52:22 422 1
原创 hive中MAP capability required is more than the supported max container capability in the cluster报错解决
hive报错解决:MAP capability required is more than the supported max container capability in the cluster. Killing the Job. mapResourceRequest: maxContainerCapability:Job received Kill while in RUNNING state.
2023-11-26 20:04:09 691 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人