[CP] [CP]support block sample perfs、set column max/min val and some bugfix code
This commit is contained in:
@ -908,11 +908,11 @@ int ObOptStatSqlService::get_table_stat_sql(const uint64_t tenant_id,
|
||||
OB_FAIL(dml_splicer.add_column("object_type", stat.get_object_type())) ||
|
||||
OB_FAIL(dml_splicer.add_time_column("last_analyzed", stat.get_last_analyzed() == 0 ?
|
||||
current_time : stat.get_last_analyzed())) ||
|
||||
OB_FAIL(dml_splicer.add_column("sstable_row_count", -1)) ||
|
||||
OB_FAIL(dml_splicer.add_column("sstable_row_count", stat.get_sstable_row_count())) ||
|
||||
OB_FAIL(dml_splicer.add_column("sstable_avg_row_len", -1)) ||
|
||||
OB_FAIL(dml_splicer.add_column("macro_blk_cnt", stat.get_macro_block_num())) ||
|
||||
OB_FAIL(dml_splicer.add_column("micro_blk_cnt", stat.get_micro_block_num())) ||
|
||||
OB_FAIL(dml_splicer.add_column("memtable_row_cnt", -1)) ||
|
||||
OB_FAIL(dml_splicer.add_column("memtable_row_cnt", stat.get_memtable_row_count())) ||
|
||||
OB_FAIL(dml_splicer.add_column("memtable_avg_row_len", -1)) ||
|
||||
OB_FAIL(dml_splicer.add_column("row_cnt", stat.get_row_count())) ||
|
||||
OB_FAIL(dml_splicer.add_column("avg_row_len", stat.get_avg_row_size())) ||
|
||||
@ -1001,7 +1001,7 @@ int ObOptStatSqlService::get_column_stat_sql(const uint64_t tenant_id,
|
||||
OB_FAIL(dml_splicer.add_column("distinct_cnt_synopsis", llc_hex_buf == NULL ? "" : llc_hex_buf)) ||
|
||||
OB_FAIL(dml_splicer.add_column("distinct_cnt_synopsis_size", llc_comp_size * 2)) ||
|
||||
OB_FAIL(dml_splicer.add_column("sample_size", stat.get_histogram().get_sample_size())) ||
|
||||
OB_FAIL(dml_splicer.add_column("density", stat.get_histogram().get_density())) ||
|
||||
OB_FAIL(dml_splicer.add_long_double_column("density", stat.get_histogram().get_density())) ||
|
||||
OB_FAIL(dml_splicer.add_column("bucket_cnt", stat.get_histogram().get_bucket_cnt())) ||
|
||||
OB_FAIL(dml_splicer.add_column("histogram_type", stat.get_histogram().get_type())) ||
|
||||
OB_FAIL(dml_splicer.add_column("global_stats", 0)) ||
|
||||
|
||||
Reference in New Issue
Block a user