- 博客(8)
- 收藏
- 关注
原创 SQL_ERROR_INFO: “Expression #2 of SELECT list is not in GROUP BY clause
"Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 't_o.total_amount' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by"
2023-01-30 22:30:01
619
原创 Cannot safely cast ‘createtime‘: string to timestamp;
ANSI 策略(),不允许 Spark 进行某些不合理的类型转换,如:string 转换成 timestamp。LEGACY 策略,允许 Spark 进行类型强制转换,只要它是有效的 Cast 操作。SQL 增加了一个安全策略,不对非同类型的数据进行强制转换,然后就会出现这个错误。STRICT 策略,不允许 Spark 进行任何可能有损精度的转换。修改 Spark 版本到 3.0.0 以下。修改策略为 LEGACY。
2023-01-18 00:26:25
2515
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人