placehold expr and system parameter used by new query range
This commit is contained in:
parent
a475001ab5
commit
978cb2f50e
5
deps/oblib/src/common/ob_common_types.h
vendored
5
deps/oblib/src/common/ob_common_types.h
vendored
@ -51,7 +51,8 @@ struct ObQueryFlag
|
||||
#define OBSF_BIT_SKIP_READ_LOB 1
|
||||
#define OBSF_BIT_IS_LOOKUP_FOR_4377 1
|
||||
#define OBSF_BIT_FOR_FOREING_KEY_CHECK 1
|
||||
#define OBSF_BIT_RESERVED 31
|
||||
#define OBSF_BIT_IS_NEW_QUERY_RANGE 1
|
||||
#define OBSF_BIT_RESERVED 30
|
||||
|
||||
static const uint64_t OBSF_MASK_SCAN_ORDER = (0x1UL << OBSF_BIT_SCAN_ORDER) - 1;
|
||||
static const uint64_t OBSF_MASK_DAILY_MERGE = (0x1UL << OBSF_BIT_DAILY_MERGE) - 1;
|
||||
@ -76,6 +77,7 @@ struct ObQueryFlag
|
||||
static const uint64_t OBSF_MASK_IS_SSTABLE_CUT = (0x1UL << OBSF_BIT_IS_SSTABLE_CUT) - 1;
|
||||
static const uint64_t OBSF_MASK_SKIP_READ_LOB = (0x1UL << OBSF_BIT_SKIP_READ_LOB) - 1;
|
||||
static const uint64_t OBSF_MASK_FOR_FOREING_KEY_CHECK = (0x1UL << OBSF_BIT_FOR_FOREING_KEY_CHECK) - 1;
|
||||
static const uint64_t OBSF_MASK_IS_NEW_QUERY_RANGE = (0x1UL << OBSF_BIT_IS_NEW_QUERY_RANGE) - 1;
|
||||
|
||||
enum ScanOrder
|
||||
{
|
||||
@ -137,6 +139,7 @@ struct ObQueryFlag
|
||||
uint64_t skip_read_lob_ : OBSF_BIT_SKIP_READ_LOB;
|
||||
uint64_t is_lookup_for_4377_ : OBSF_BIT_IS_LOOKUP_FOR_4377;
|
||||
uint64_t for_foreign_key_check_ : OBSF_BIT_FOR_FOREING_KEY_CHECK;
|
||||
uint64_t is_new_query_range_ : OBSF_BIT_IS_NEW_QUERY_RANGE;
|
||||
uint64_t reserved_ : OBSF_BIT_RESERVED;
|
||||
};
|
||||
};
|
||||
|
2
deps/oblib/src/lib/ob_name_def.h
vendored
2
deps/oblib/src/lib/ob_name_def.h
vendored
@ -1069,4 +1069,6 @@
|
||||
#define N_NLS_INITCAP "nls_initcap"
|
||||
#define N_TEMP_TABLE_SSID "temp_table_ssid"
|
||||
#define N_ALIGN_DATE4CMP "align_date4cmp"
|
||||
#define N_INEER_IS_TRUE "inner_is_true"
|
||||
#define N_INNER_DECODE_LIKE "inner_decode_like"
|
||||
#endif //OCEANBASE_LIB_OB_NAME_DEF_H_
|
||||
|
@ -818,6 +818,8 @@ typedef enum ObItemType
|
||||
T_FUN_SYS_UNIFORM = 1805,
|
||||
T_FUN_SYS_RANDOM = 1806,
|
||||
T_FUN_SYS_RANDSTR = 1807,
|
||||
T_FUNC_SYS_INNER_IS_TRUE = 1808,
|
||||
T_FUN_SYS_INNER_DECODE_LIKE = 1809,
|
||||
T_FUN_SYS_END = 2000,
|
||||
T_FUN_SYS_ALIGN_DATE4CMP = 2010,
|
||||
|
||||
|
@ -1738,3 +1738,7 @@ DEF_MODE_WITH_PARSER(_obkv_feature_mode, OB_CLUSTER_PARAMETER, "", common::ObKvF
|
||||
DEF_BOOL(_enable_range_extraction_for_not_in, OB_TENANT_PARAMETER, "True",
|
||||
"Enable extract query range for not in predicate",
|
||||
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
|
||||
// DEF_BOOL(_enable_new_query_range_extraction, OB_TENANT_PARAMETER, "True",
|
||||
// "decide whether use new algorithm to extract query range.",
|
||||
// ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
|
@ -1047,6 +1047,15 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = {
|
||||
ObExprIs::decimal_int_is_false, /* 612 */
|
||||
ObExprIsNot::decimal_int_is_not_true, /* 613 */
|
||||
ObExprIsNot::decimal_int_is_not_false, /* 614 */
|
||||
NULL, //ObExprInnerIsTrue::int_is_true_start, /* 615 */
|
||||
NULL, //ObExprInnerIsTrue::int_is_true_end, /* 616 */
|
||||
NULL, //ObExprInnerIsTrue::float_is_true_start, /* 617 */
|
||||
NULL, //ObExprInnerIsTrue::float_is_true_end, /* 618 */
|
||||
NULL, //ObExprInnerIsTrue::double_is_true_start, /* 619 */
|
||||
NULL, //ObExprInnerIsTrue::double_is_true_end, /* 620 */
|
||||
NULL, //ObExprInnerIsTrue::number_is_true_start, /* 621 */
|
||||
NULL, //ObExprInnerIsTrue::number_is_true_end, /* 622 */
|
||||
NULL, //ObExprInnerDecodeLike::eval_inner_decode_like /* 623 */
|
||||
};
|
||||
|
||||
static ObExpr::EvalBatchFunc g_expr_eval_batch_functions[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user