apache / rocketmq-client-python

Apache RocketMQ python client
https://rocketmq.apache.org/
Apache License 2.0
277 stars 95 forks source link

what kind of expression should be put in subscribe(self, topic, callback, expression='*') #145

Open ys270 opened 1 year ago

ys270 commented 1 year ago

I want to use SQL in expression to filter message properties when consuming messages, but it seems that I cannot get the messages I want. I put "Tag=test AND creator=xx" in expression and I want to filter messages with tag test and property {creator=xx}. How should I get this done?

ifplusor commented 1 year ago

It only supports "||" in expression at present.

ys270 commented 1 year ago

thanks, do you plan to support others in the future?

ifplusor commented 1 year ago

There is no plan in the c++ client. Maybe you can look at the new client project.