Disable dynamic sampling for external table
This commit is contained in:
@ -88,6 +88,7 @@ int OptTableMeta::assign(const OptTableMeta &other)
|
||||
|
||||
int OptTableMeta::init(const uint64_t table_id,
|
||||
const uint64_t ref_table_id,
|
||||
const ObTableType table_type,
|
||||
const int64_t rows,
|
||||
const OptTableStatType stat_type,
|
||||
ObSqlSchemaGuard &schema_guard,
|
||||
@ -247,6 +248,7 @@ int OptTableMetas::copy_table_meta_info(const OptTableMetas &table_metas, const
|
||||
int OptTableMetas::add_base_table_meta_info(OptSelectivityCtx &ctx,
|
||||
const uint64_t table_id,
|
||||
const uint64_t ref_table_id,
|
||||
const ObTableType table_type,
|
||||
const int64_t rows,
|
||||
ObIArray<int64_t> &all_used_part_id,
|
||||
ObIArray<ObTabletID> &all_used_tablets,
|
||||
@ -265,7 +267,7 @@ int OptTableMetas::add_base_table_meta_info(OptSelectivityCtx &ctx,
|
||||
} else if (OB_ISNULL(table_meta = table_metas_.alloc_place_holder())) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
LOG_WARN("failed to allocate place holder for table meta", K(ret));
|
||||
} else if (OB_FAIL(table_meta->init(table_id, ref_table_id, rows, stat_type,
|
||||
} else if (OB_FAIL(table_meta->init(table_id, ref_table_id, table_type, rows, stat_type,
|
||||
*schema_guard, all_used_part_id, all_used_tablets,
|
||||
column_ids, all_used_global_parts, scale_ratio, ctx))) {
|
||||
LOG_WARN("failed to init new tstat", K(ret));
|
||||
|
||||
Reference in New Issue
Block a user