[CP] fix onetime expr cause prune index incorrectly

This commit is contained in:
ChangerR
2023-11-15 05:14:18 +00:00
committed by ob-robot
parent 98c4e09fa1
commit 73a2381458
2 changed files with 42 additions and 10 deletions

View File

@ -599,7 +599,8 @@ struct EstimateCostInfo {
table_opt_info_(),
for_update_(false),
use_skip_scan_(OptSkipScanState::SS_UNSET),
use_column_store_(false)
use_column_store_(false),
is_valid_inner_path_(false)
{
}
virtual ~AccessPath() {
@ -668,6 +669,8 @@ struct EstimateCostInfo {
}
return ret;
}
// compute current path is inner path and contribute query ranges
int compute_valid_inner_path();
TO_STRING_KV(K_(table_id),
K_(ref_table_id),
@ -685,7 +688,8 @@ struct EstimateCostInfo {
K_(for_update),
K_(use_das),
K_(use_skip_scan),
K_(use_column_store));
K_(use_column_store),
K_(is_valid_inner_path));
public:
//member variables
uint64_t table_id_;
@ -708,6 +712,8 @@ struct EstimateCostInfo {
bool for_update_;
OptSkipScanState use_skip_scan_;
bool use_column_store_;
// mark this access path is inner path and contribute query range
bool is_valid_inner_path_;
private:
DISALLOW_COPY_AND_ASSIGN(AccessPath);
};