mrhhsg opened a new pull request, #71393: URL: https://github.com/apache/doris/pull/71393
## What problem does this PR solve? Cherry-picked from #65051: https://github.com/apache/doris/pull/65051 Short-circuit point queries decode row-store payloads using the original full schema. Nested-column pruning can change complex slot types and attach access paths, making the descriptor incompatible with row-store decoding. ## What is changed? - Skip nested-column pruning for short-circuit point queries, preserving full complex-column types. - Reject short-circuit descriptors with any non-empty column or predicate access-path list before creating blocks or expressions, and return an explicit error requesting an FE upgrade. - Adapt projection translation for branch-4.1: use the existing single-layer path for short-circuit queries so output expressions reference scan slots rather than intermediate CSE tuples. Multi-layer CSE remains unchanged for regular queries. - Preserve the complete source regression and its expected output. No textual cherry-pick conflicts. The projection-translation change is required because branch-4.1 does not flatten intermediate projections for point-query RPCs. ### Compatibility The BE check preserves the source PR's strict behavior: descriptors carrying any access paths, including whole-column root paths from older FEs, are rejected. This backport does not add older-FE root-path compatibility; affected FEs must be upgraded. ## Testing - FE/BE build passed; FE rebuilt successfully after the branch-4.1 projection adaptation. - FE unit tests passed: `PruneNestedColumnTest` (42) and `CommonSubExpressionTest` (9), 51 total, with no failures, errors or skips. - `test_short_circuit_rowstore_nested_complex`: 1 regression suite passed against the unchanged checked-in expected output. - FE Checkstyle, clang-format 16 and `git diff --check` passed. BE unit tests, the full regression suite, mixed-version deployment and performance testing were not run. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
