JackieTien97 opened a new pull request, #18201: URL: https://github.com/apache/iotdb/pull/18201
## Summary Backport #18179 to dev/1.3. - preserve parser-owned tree query state across analysis retries - restore time predicates and other normalized query components before retrying - add regression coverage for predicate extraction, templated analysis, logical planning, and query execution retry lifecycle - adapt the changes to the dev/1.3 APIs and code structure ## Root cause Tree-model query analysis mutates the parsed statement while extracting time predicates and normalizing query components. When dispatch fails and the same statement is analyzed again, the retry can observe the mutated state and lose the original time filter. ## Backport notes The master PR also contains table-model changes. Those classes do not exist on the dev/1.3 codebase, so this backport intentionally includes only the applicable tree-model changes. ## Validation - mvn -pl iotdb-core/datanode -am -DskipTests package - PredicateUtilsTest: 8 tests passed - TemplatedAnalyzeRetryTest: 2 tests passed - QueryExecutionRetryTest: 2 tests passed - LogicalPlanBuilderTest: 2 tests passed -- 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]
