You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/06/04 08:47:01 UTC

[GitHub] [rocketmq-flink] GOODBOY008 commented on a diff in pull request #28: Support SQL92 filter mode.

GOODBOY008 commented on code in PR #28:
URL: https://github.com/apache/rocketmq-flink/pull/28#discussion_r889505305


##########
src/main/java/org/apache/rocketmq/flink/source/reader/RocketMQPartitionSplitReader.java:
##########
@@ -148,30 +153,44 @@ public RecordsWithSplitIds<Tuple3<T, Long, Long>> fetch() throws IOException {
                     if (wakeup) {
                         LOG.info(
                                 String.format(
-                                        "Wake up pulling messages of topic[%s] broker[%s] queue[%d] tag[%s] from offset[%d].",
+                                        "Wake up pulling messages of topic[%s] broker[%s] queue[%d] tag[%s] sql[%s] from offset[%d].",
                                         messageQueue.getTopic(),
                                         messageQueue.getBrokerName(),
                                         messageQueue.getQueueId(),
                                         tag,
+                                        sql,
                                         messageOffset));
                         wakeup = false;
                         recordsBySplits.prepareForRead();
                         return recordsBySplits;
                     }
-                    pullResult =
-                            consumer.pull(
-                                    messageQueue, tag, messageOffset, MAX_MESSAGE_NUMBER_PER_BLOCK);
+                    if (StringUtils.isNotEmpty(tag)) {
+                        pullResult =
+                                consumer.pull(
+                                        messageQueue,
+                                        tag,
+                                        messageOffset,
+                                        MAX_MESSAGE_NUMBER_PER_BLOCK);
+                    } else {

Review Comment:
   > Should this check whether `sql` is empty?
   
   @SteNicholas I have add this check condition.Please cc



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org