Gabriel39 commented on PR #66109: URL: https://github.com/apache/doris/pull/66109#issuecomment-7125720543
Please resolve the conflicts with current master and rework this optimization against the format V2 readers. The current hooks modify `be/src/format/orc/vorc_reader.cpp` and `be/src/format/parquet/vparquet_group_reader.cpp`, both of which have been removed from master. There is substantial overlap with the existing V2 implementation: - Parquet V2 already has `order_adaptive_predicates()`, measured cost/selectivity statistics, and round-by-round predicate-column reads using the surviving SelectionVector. Please reuse this scheduler rather than introduce a second overlapping mechanism. - ORC V2 still evaluates its residual conjuncts over the same fixed row set in `_execute_conjuncts()`, so selective execution and adaptive ordering remain useful there. Parquet still has potential gaps worth addressing: multiple conjuncts on the same column are evaluated as a group, and complex functions such as `split_by_string` are not currently admitted by `is_safe_to_execute_on_selected_rows()`. Please evaluate these uncovered cases separately. That safety gate protects non-deterministic and potentially throwing expressions; changing evaluation order or skipping rejected rows is not automatically correctness-neutral. Please adapt the implementation to these V2 gaps and add actual V2 reader tests and performance comparisons, including same-column/different-column conjuncts and a cheap selective predicate followed by an expensive string expression. Preserve NULL, delete-filter, runtime-filter, and error semantics. -- 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]
