From 7f169320c7cea8f5b8c67d7fcdca3035e87c8255 Mon Sep 17 00:00:00 2001 From: coolfishchen Date: Wed, 3 Jul 2024 04:07:03 +0000 Subject: [PATCH] placeholder for online_sample_rate_ in ObOptimizerStatsGatheringSpec --- .../opt_statistics/ob_optimizer_stats_gathering_op.cpp | 8 +++++--- .../opt_statistics/ob_optimizer_stats_gathering_op.h | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.cpp b/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.cpp index 23e343be9d..6f92de5283 100644 --- a/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.cpp +++ b/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.cpp @@ -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 } } -} \ No newline at end of file +} diff --git a/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.h b/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.h index 66bf0d60d1..4a19926c8d 100644 --- a/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.h +++ b/src/sql/engine/opt_statistics/ob_optimizer_stats_gathering_op.h @@ -55,6 +55,7 @@ public: ExprFixedArray generated_column_exprs_; ExprFixedArray col_conv_exprs_; ObFixedArray 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_ */ \ No newline at end of file +#endif /* SRC_SQL_ENGINE_BASIC_OB_MONITORING_DUMP_OP_H_ */