Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions gensrc/thrift/PlanNodes.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,18 @@ enum TRuntimeFilterType {
BITMAP = 16
}

// generate min-max runtime filter for non-equal condition or equal condition.
enum TMinMaxRuntimeFilterType {
// only min is valid, RF generated according to condition: n < col_A
MIN = 1
// only max is valid, RF generated according to condition: m > col_A
MAX = 2
// both min/max are valid,
// support hash join condition: col_A = col_B
// support other join condition: n < col_A and col_A < m
MIN_MAX = 4
}

// Specification of a runtime filter.
struct TRuntimeFilterDesc {
// Filter unique id (within a query)
Expand Down Expand Up @@ -1104,8 +1116,13 @@ struct TRuntimeFilterDesc {
11: optional bool bitmap_filter_not_in

12: optional bool opt_remote_rf;

// for min/max rf
13: optional TMinMaxRuntimeFilterType min_max_type;
}



struct TDataGenScanNode {
1: optional Types.TTupleId tuple_id
2: optional TDataGenFunctionName func_name
Expand Down