fix some optimizer stat bug
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
#include "sql/optimizer/ob_join_order.h"
|
||||
#include "common/ob_smart_call.h"
|
||||
#include "share/stat/ob_dbms_stats_utils.h"
|
||||
#include "sql/optimizer/ob_access_path_estimation.h"
|
||||
|
||||
using namespace oceanbase::common;
|
||||
using namespace oceanbase::share::schema;
|
||||
@ -658,7 +659,7 @@ int ObOptSelectivity::calc_selectivity_by_dynamic_sampling(const OptSelectivityC
|
||||
int64_t start_time = ObTimeUtility::current_time();
|
||||
bool throw_ds_error = false;
|
||||
if (OB_FAIL(dynamic_sampling.estimate_table_rowcount(ds_table_param, ds_result_items, throw_ds_error))) {
|
||||
if (!throw_ds_error) {
|
||||
if (!throw_ds_error && !ObAccessPathEstimation::is_retry_ret(ret)) {
|
||||
LOG_WARN("failed to estimate filter rowcount caused by some reason, please check!!!", K(ret),
|
||||
K(start_time), K(ObTimeUtility::current_time() - start_time), K(ds_table_param),
|
||||
K(ctx.get_session_info()->get_current_query_string()));
|
||||
|
||||
Reference in New Issue
Block a user