xylaaaaa commented on code in PR #65183:
URL: https://github.com/apache/doris/pull/65183#discussion_r3527055431


##########
be/src/format_v2/column_mapper.h:
##########
@@ -278,6 +278,16 @@ class ParquetColumnMapper final : public TableColumnMapper 
{
     using TableColumnMapper::TableColumnMapper;
 };
 
+// ORC uses file-local conjuncts both for row-level filtering and for ORC 
SearchArgument pruning.
+// column_predicate_filters are Parquet-only pruning hints in the v2 path.
+class OrcColumnMapper final : public TableColumnMapper {
+public:
+    using TableColumnMapper::TableColumnMapper;
+
+protected:
+    bool enable_column_predicate_filters() const override { return false; }

Review Comment:
   这里不是 ORC 在使用 `column_predicate_filters`。`OrcColumnMapper` 覆盖 
`enable_column_predicate_filters()` 返回 false,是为了让 ORC 路径显式不生成这类 Parquet-only 
pruning hints;ORC 仍然走 file-local conjuncts -> SARG/行级过滤。



-- 
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]

Reply via email to