利志分享
view_headline
开发工具箱
go教程
clickhouse教程
kafka教程
python教程
shell教程
原创杂文
开发工具箱
go教程
clickhouse教程
kafka教程
python教程
shell教程
原创杂文
clickhouse的sql出现:DB::Exception: Nested type Array(String) cannot be inside Nullable type
原创杂文 / 时间:2022-03-04 09:26:43 / 阅读:74 / 分享:0
clickhouse的sql使用出现: ``` Exception on client: Code: 43. DB::Exception: Nested type Array(String) cannot be inside Nullable type ``` 相关的报错。 原因:使用splitByString,groupArray函数,他们对Nullable类型是不支持的,需要转成String。 **解决:使用cast强转一下字段类型就行:** ``` select splitByString(',',cast(col as String)) col from test select groupArray(cast(col as String)) col from test ```
按时间分类
2022-04-22
2022-04-10
2022-03-26
2022-03-16
2022-03-08
2022-03-04
2022-02-27
2022-02-26
2022-02-19
2022-01-30
2022-01-23
2021-11-14
2021-11-06
2021-10-07
2021-09-21
2021-09-20
2021-09-15
2021-08-22
2021-08-13
2021-07-28
2021-06-17
2021-05-22
2021-04-23
2021-04-03
2021-03-07
2021-03-05
2021-03-04
2021-02-28
2021-02-21
2021-02-20