Skip to content

Commit

Permalink
[log](regression)Add log for failed analyze task and the regression c…
Browse files Browse the repository at this point in the history
…ase. (#47635)

### What problem does this PR solve?
Add log for failed analyze task and the regression case.
  • Loading branch information
Jibing-Li authored Feb 10, 2025
1 parent 927c6f1 commit a5468a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ protected void init(AnalysisInfo info) {
|| info.analysisType.equals(AnalysisType.HISTOGRAM))) {
col = tbl.getColumn(info.colName);
if (col == null) {
throw new RuntimeException(String.format("Column with name %s not exists", tbl.getName()));
throw new RuntimeException(String.format("Column with name %s not exists in table %s",
info.colName, tbl.getName()));
}
Preconditions.checkArgument(!StatisticsUtil.isUnsupportedType(col.getType()),
String.format("Column with type %s is not supported", col.getType().toString()));
Expand Down
2 changes: 2 additions & 0 deletions regression-test/suites/statistics/test_update_rows_mv.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ suite("test_update_rows_mv", "p0") {

sql """SET enable_fallback_to_original_planner=false;"""

def desc = sql """desc ${tbl}"""
log.info("desc result: " + desc);
sql """analyze table ${tbl} with sync;"""

Thread.sleep(1000 * 3)
Expand Down

0 comments on commit a5468a9

Please sign in to comment.