incubator-doris REPLACE() is not available for Doris

qnyhuwrf  于 2022-04-22  发布在  Java
关注(0)|答案(1)|浏览(305)

There is a bug as using internal function of MySQL named REPLACE(). One error message will display in screen, detailed message as follow:

mysql> SELECT REPLACE('www.lvtao.net', 'www', 'http://www');
ERROR 1064 (HY000): errCode = 2, detailMessage = Syntax error in line 1:
SELECT REPLACE('www.lvtao.net', 'www', 'http://www')
^
Encountered: REPLACE
Expected: REPLACE is keyword, maybe REPLACE

yhxst69z

yhxst69z1#

There is no replace function in Doris. But there is a regexp_replace function in Doris which provides similar function.

相关问题