placeholder for online_sample_rate_ in ObOptimizerStatsGatheringSpec

This commit is contained in:
coolfishchen
2024-07-03 04:07:03 +00:00
committed by ob-robot
parent 86981f121b
commit 7f169320c7
2 changed files with 7 additions and 4 deletions

View File

@ -39,7 +39,8 @@ ObOptimizerStatsGatheringSpec::ObOptimizerStatsGatheringSpec(ObIAllocator &alloc
target_osg_id_(OB_INVALID_ID),
generated_column_exprs_(alloc),
col_conv_exprs_(alloc),
column_ids_(alloc)
column_ids_(alloc),
online_sample_rate_(1.)
{
}
@ -76,7 +77,8 @@ OB_SERIALIZE_MEMBER((ObOptimizerStatsGatheringSpec, ObOpSpec),
target_osg_id_,
generated_column_exprs_,
col_conv_exprs_,
column_ids_);
column_ids_,
online_sample_rate_);
ObOptimizerStatsGatheringOp::ObOptimizerStatsGatheringOp(ObExecContext &exec_ctx, const ObOpSpec &spec, ObOpInput *input)
: ObOperator(exec_ctx, spec, input),
@ -662,4 +664,4 @@ int ObOptimizerStatsGatheringOp::get_tab_stats(common::ObIArray<ObOptTableStat*>
}
}
}
}

View File

@ -55,6 +55,7 @@ public:
ExprFixedArray generated_column_exprs_;
ExprFixedArray col_conv_exprs_;
ObFixedArray<uint64_t, common::ObIAllocator> column_ids_;
double online_sample_rate_;
};
class ObOptimizerStatsGatheringOp : public ObOperator
@ -129,4 +130,4 @@ private:
};
}
}
#endif /* SRC_SQL_ENGINE_BASIC_OB_MONITORING_DUMP_OP_H_ */
#endif /* SRC_SQL_ENGINE_BASIC_OB_MONITORING_DUMP_OP_H_ */