问题描述
spark1.5中,使用spark-sql无法使用replace函数
问题原因
目前版本兼容性问题
解决措施
spark不支持replace函数。
使用regexp_replace替代。
select regexp_replace(id,"1","222") from zzltest2 limit 1;
spark1.5中,使用spark-sql无法使用replace函数
目前版本兼容性问题
spark不支持replace函数。
使用regexp_replace替代。
select regexp_replace(id,"1","222") from zzltest2 limit 1;
本文标题:【2019-07-29】spark 1.5不支持函数replac
本文链接:https://www.haomeiwen.com/subject/qvbvrctx.html
网友评论