Caideyipi opened a new pull request, #17938: URL: https://github.com/apache/iotdb/pull/17938
## Description This patch fixes tree-model aggregate-processor output events when processor.output.database is configured and the sink is write-back-sink. Previously, aggregate output tablets rewrote the device path to the configured output database, but the raw tablet event database metadata could still inherit the source data region database. During write-back, partition lookup could then use mismatched database metadata and hit an NPE in DataPartition. Changes: - Preserve and allow overriding raw table/tree database metadata in raw tablet collectors. - Make AggregateProcessor set generated tree output events to the configured output database. - Add defensive DataPartition null checks to avoid unclear null-map NPEs. - Add a unit test covering overridden tree database metadata on collected row output. ## Verification - mvn spotless:apply -pl iotdb-core/datanode,iotdb-core/node-commons - git diff --check Targeted test was attempted but this local checkout cannot complete it: direct datanode test resolution misses local 2.0.10.1 artifacts; -am reaches upstream modules but fails before datanode in unrelated calc-commons generated NextFill compilation. -- 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]
