From 6e2bc84a8544ff1971eff2f71e161b2e81ac7efc Mon Sep 17 00:00:00 2001 From: kakachen Date: Thu, 11 Sep 2025 17:15:38 +0800 Subject: [PATCH] [fix](paimon) Fix paimon native reader don't use late materialization. --- be/src/vec/exec/scan/vfile_scanner.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/be/src/vec/exec/scan/vfile_scanner.cpp b/be/src/vec/exec/scan/vfile_scanner.cpp index 3665e52270f002..54f9c80798914c 100644 --- a/be/src/vec/exec/scan/vfile_scanner.cpp +++ b/be/src/vec/exec/scan/vfile_scanner.cpp @@ -943,9 +943,6 @@ Status VFileScanner::_get_next_reader() { // for compatibility, if format_type is not set in range, use the format type of params TFileFormatType::type format_type = range.__isset.format_type ? range.format_type : _params->format_type; - // JNI reader can only push down column value range - bool push_down_predicates = - !_is_load && _params->format_type != TFileFormatType::FORMAT_JNI; // for compatibility, this logic is deprecated in 3.1 if (format_type == TFileFormatType::FORMAT_JNI && range.__isset.table_format_params) { if (range.table_format_params.table_format_type == "paimon" && @@ -961,6 +958,8 @@ Status VFileScanner::_get_next_reader() { } } } + // JNI reader can only push down column value range + bool push_down_predicates = !_is_load && format_type != TFileFormatType::FORMAT_JNI; bool need_to_get_parsed_schema = false; switch (format_type) { case TFileFormatType::FORMAT_JNI: {