happyboy1024 commented on code in PR #7895:
URL: https://github.com/apache/seatunnel/pull/7895#discussion_r1815921695
##########
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:
> I think we should throw exception.
Do we need to terminate directly here? Or do we add the warn log output,
what do you think?
--
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]