apache / rocketmq-client-go

Apache RocketMQ go client
https://rocketmq.apache.org/
Apache License 2.0
1.29k stars 416 forks source link

SQL Filtering supports `/` #979

Open maqingxiang opened 1 year ago

maqingxiang commented 1 year ago

Here we have the scenario where the message properties are named with /, e.g. a/b/c. To filter those attributes, we're eager on the enhancement of SQL filterting that is able to handle special characters such as /.

We've tried defining / in the ID of org.apache.rocketmq.filter.parser.SelectorParser but it didn't worked as expected, the error message is like Caused by: com.alipay.sofa.sofamq.org.shade.apache.rocketmq.client.exception.MQClientException: CODE: 23 DESC: org.apache.rocketmq.filter.parser.TokenMgrError: Lexical error at line 1, column 3. Encountered: "b" (98), after : "/"

francisoliverlee commented 1 year ago

message properties最好不包含sql中的关键字或者被识别为token的字符串。 斜线不建议使用