happyboy1024 commented on code in PR #7895:
URL: https://github.com/apache/seatunnel/pull/7895#discussion_r1815933642


##########
seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/source/reader/DorisSourceReader.java:
##########
@@ -71,7 +75,12 @@ public void pollNext(Collector<SeaTunnelRow> output) throws 
Exception {
             DorisSourceSplit nextSplit = splitsQueue.poll();
             if (nextSplit != null) {
                 PartitionDefinition partition = 
nextSplit.getPartitionDefinition();
-                valueReader = new DorisValueReader(partition, dorisConfig, 
seaTunnelRowType);
+                DorisSourceTable dorisSourceTable =
+                        tables.get(TablePath.of(partition.getDatabase(), 
partition.getTable()));
+                if (dorisSourceTable == null) {
+                    return;

Review Comment:
   > An exception should be thrown because if there is no bug with the 
connector, it should never be null
   
   Ok, I see what you mean. I'll adjust. thx



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to