[FEAT MERGE] 424 SQL compatibility patch 433

Co-authored-by: wjhh2008 <wjh2006-1@163.com>
Co-authored-by: GongYusen <986957406@qq.com>
Co-authored-by: hy-guo <fqboyg@gmail.com>
This commit is contained in:
jingtaoye35
2024-08-23 03:32:01 +00:00
committed by ob-robot
parent cb61323917
commit e537a0c479
296 changed files with 21588 additions and 4122 deletions

View File

@ -1709,6 +1709,24 @@ int ObDMLStmtPrinter::print_base_table(const TableItem *table_item)
DATA_PRINTF(")");
}
}
if (OB_SUCC(ret) && OB_NOT_NULL(table_item->sample_info_)) {
if (SampleInfo::SampleMethod::BLOCK_SAMPLE == table_item->sample_info_->method_) {
DATA_PRINTF(" sample block(");
DATA_PRINTF("%lf", table_item->sample_info_->percent_);
DATA_PRINTF(")");
} else if (SampleInfo::SampleMethod::ROW_SAMPLE == table_item->sample_info_->method_) {
DATA_PRINTF(" sample(");
DATA_PRINTF("%lf", table_item->sample_info_->percent_);
DATA_PRINTF(")");
}
if (table_item->sample_info_->seed_ != -1) {
DATA_PRINTF(" seed(");
DATA_PRINTF(" %ld ", table_item->sample_info_->seed_);
DATA_PRINTF(")");
}
}
// flashback query
if (OB_SUCC(ret)) {
bool explain_non_extend = false;