[docs & fix](stats) Fix tablesample init failed and some outdated contents in docs (#25603)

This commit is contained in:
AKIRA
2023-10-25 17:38:00 +08:00
committed by GitHub
parent 20fa1eff65
commit 4bda1650e1
3 changed files with 9 additions and 9 deletions

View File

@ -146,11 +146,11 @@ public abstract class BaseAnalysisTask {
}
protected void init(AnalysisInfo info) {
tableSample = getTableSample();
DBObjects dbObjects = StatisticsUtil.convertIdToObjects(info.catalogId, info.dbId, info.tblId);
catalog = dbObjects.catalog;
db = dbObjects.db;
tbl = dbObjects.table;
tableSample = getTableSample();
// External Table level task doesn't contain a column. Don't need to do the column related analyze.
if (info.externalTableLevelTask) {
return;