apache / rocketmq-client-python

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

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

Open ys270 opened 10 months ago

ys270 commented 10 months 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 10 months ago

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

ys270 commented 10 months ago

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

ifplusor commented 10 months ago

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