Skip to content

Commit 8fc18eb

Browse files
xinyiZzzYulei-Yang
authored andcommitted
[fix](scan) Default enable function(Like) pushdown apache#17154
function pushdown: apache#10355 NGram BloomFilter Index apply like pushdown: apache#11579 Enabled by default, make sure it stays active. If NGram BloomFilter Index is not used, this like pushdown can be replaced by apache#15917, which can push down all expressions including like.
1 parent c12cff5 commit 8fc18eb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

be/src/olap/rowset/segment_v2/segment_iterator.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "common/consts.h"
2525
#include "common/status.h"
2626
#include "olap/column_predicate.h"
27+
#include "olap/like_column_predicate.h"
2728
#include "olap/olap_common.h"
2829
#include "olap/rowset/segment_v2/column_reader.h"
2930
#include "olap/rowset/segment_v2/segment.h"
@@ -568,6 +569,12 @@ bool SegmentIterator::_check_apply_by_inverted_index(ColumnPredicate* pred, bool
568569
return false;
569570
}
570571

572+
// Function filter no apply inverted index
573+
if (dynamic_cast<LikeColumnPredicate<false>*>(pred) ||
574+
dynamic_cast<LikeColumnPredicate<true>*>(pred)) {
575+
return false;
576+
}
577+
571578
bool handle_by_fulltext = _column_has_fulltext_index(unique_id);
572579
if (handle_by_fulltext) {
573580
// when predicate in compound condition which except leafNode of andNode,

fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ public class SessionVariable implements Serializable, Writable {
630630
public boolean enableSingleReplicaInsert = false;
631631

632632
@VariableMgr.VarAttr(name = ENABLE_FUNCTION_PUSHDOWN)
633-
public boolean enableFunctionPushdown;
633+
public boolean enableFunctionPushdown = true;
634634

635635
@VariableMgr.VarAttr(name = ENABLE_LOCAL_EXCHANGE, fuzzy = true)
636636
public boolean enableLocalExchange = true;

0 commit comments

Comments
 (0)