Caideyipi commented on code in PR #16435:
URL: https://github.com/apache/iotdb/pull/16435#discussion_r2390212728
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/realtime/PipeRealtimeDataRegionSource.java:
##########
@@ -237,7 +237,8 @@ public void customize(
if (PathUtils.isTableModelDatabase(databaseName)) {
isDbNameCoveredByPattern = tablePattern.coversDb(databaseName);
} else {
- isDbNameCoveredByPattern = treePattern.coversDb(databaseName);
+ isDbNameCoveredByPattern =
+ treePatterns.stream().allMatch(treePattern ->
treePattern.coversDb(databaseName));
Review Comment:
+1
##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/source/IoTDBConfigRegionSource.java:
##########
@@ -244,7 +244,8 @@ protected Optional<PipeWritePlanEvent>
trimRealtimeEventByPipePattern(
final PipeWritePlanEvent event) {
return parseConfigPlan(
((PipeConfigRegionWritePlanEvent) event).getConfigPhysicalPlan(),
- treePattern,
+ // TODO: handle multiple patterns
Review Comment:
should complete it
--
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]