dataroaring opened a new pull request, #60512: URL: https://github.com/apache/doris/pull/60512
## Summary - Add session variable `enable_mor_value_predicate_pushdown_tables` to control value column predicate pushdown for MOR (Merge-On-Read) tables - Allow users to selectively enable value predicate pushdown per table or for all MOR tables - Enable inverted index utilization on value columns for filtering in MOR tables ## Changes **FE Changes:** - `SessionVariable.java`: Add session variable with getter and helper method `isMorValuePredicatePushdownEnabled()` - `OlapTable.java`: Add `isMorTable()` helper method - `OlapScanNode.java`: Set flag in `toThrift()` based on session variable **BE Changes:** - `scan_operator.h`: Add virtual method `_should_push_down_mor_value_predicate()` - `olap_scan_operator.h/cpp`: Implement override to read thrift flag - `scan_operator.cpp`: Modify predicate pushdown condition to include MOR value predicate pushdown **Thrift:** - `PlanNodes.thrift`: Add field `enable_mor_value_predicate_pushdown` to `TOlapScanNode` ## Usage ```sql -- Enable for specific table SET enable_mor_value_predicate_pushdown_tables = 'mydb.mytable'; -- Enable for all MOR tables SET enable_mor_value_predicate_pushdown_tables = '*'; -- Disable (default) SET enable_mor_value_predicate_pushdown_tables = ''; ``` ## Test plan - [ ] Verify session variable can be set and read correctly - [ ] Test with specific table names and wildcard - [ ] Verify value predicates are pushed down when enabled - [ ] Verify inverted indexes on value columns are utilized - [ ] Ensure no regression for non-MOR tables 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
