sermant-io / Sermant

CNCF sandbox project, a Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.25k stars 164 forks source link

mq gray sql statement expression is incorrectly split #1631

Closed chengyouling closed 1 day ago

chengyouling commented 1 month ago

What happened?

if TAGS definition as 'tag1orderTag2', then using Pattern PATTERN = Pattern.compile("and|or", Pattern.CASE_INSENSITIVE) to split will wrong split to 'tag1', 'derTag2'.

How can we reproduce it (as minimally and precisely as possible)?

test with tag 'tag1orderTag2' or 'tag1anderTag2'

Anything else we need to know?

No response

Sermant version

2.0.x

OS version

No response