Skip to content

Commit 68f9217

Browse files
committed
PaxAccessMethod::ScanFlags support SCAN_SUPPORT_RUNTIME_FILTER.
1 parent 9785e78 commit 68f9217

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/pax_storage/src/cpp/access/pax_access_handle.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ const TupleTableSlotOps *PaxAccessMethod::SlotCallbacks(
443443

444444
uint32 PaxAccessMethod::ScanFlags(Relation relation) {
445445
uint32 flags = 0;
446+
std::vector<int> minmax_columns;
446447
#ifdef VEC_BUILD
447448
flags |= SCAN_SUPPORT_VECTORIZATION | SCAN_SUPPORT_COLUMN_ORIENTED_SCAN;
448449
#else
@@ -452,6 +453,10 @@ uint32 PaxAccessMethod::ScanFlags(Relation relation) {
452453
#if defined(USE_MANIFEST_API) && !defined(USE_PAX_CATALOG)
453454
flags |= SCAN_FORCE_BIG_WRITE_LOCK;
454455
#endif
456+
minmax_columns = cbdb::GetMinMaxColumnIndexes(relation);
457+
if (!minmax_columns.empty()) {
458+
flags |= SCAN_SUPPORT_RUNTIME_FILTER;
459+
}
455460

456461
return flags;
457462
}

0 commit comments

Comments
 (0)