【2019-07-29】spark 1.5不支持函数replac
2019-07-30 本文已影响0人
学师大术
问题描述
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;