Open andr-c opened 6 months ago
Hi @andr-c , Anyone working on this issues, if not could you please assign this to me?
Please correct me, if understood wrong: You're trying to remove only star characters from a string, but it's removing all non-English characters instead.
Solution for this issues:
For regex operations, command should be
mysql> select regexp_replace('**FAQ 常见问题', '^\\**', '');
Expected behaviour (Required) 'FAQ 常见问题'
Real behaviour (Required) +---------------------------------------------------+ | regexp_replace('FAQ 常见问题', '^\', '') | +---------------------------------------------------+ | FAQ 常见问题 | +---------------------------------------------------+
Hi @bytebishal, yes, correct - i would expect only star characters removed, all text (both English/Chinese) should be left intact. At least this is the behavior I see for similar query in postgres. Not sure I have the rights to assign it to anyone though...
Hi @andr-c ,
please do let me know if I can work on this. Thank you.
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!
Steps to reproduce the behavior (Required)
Expected behavior (Required)
The above command should give a string with only star characters removed:
Real behavior (Required)
In fact it removes all non-english chars:
StarRocks version (Required)
was run from registry.starrocks.io/starrocks/allin1-ubuntu