This is an automated email from the ASF dual-hosted git repository.
lijibing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new a5468a924ef [log](regression)Add log for failed analyze task and the
regression case. (#47635)
a5468a924ef is described below
commit a5468a924ef046486620796e522251d58b62d221
Author: James <[email protected]>
AuthorDate: Mon Feb 10 10:43:04 2025 +0800
[log](regression)Add log for failed analyze task and the regression case.
(#47635)
### What problem does this PR solve?
Add log for failed analyze task and the regression case.
---
.../src/main/java/org/apache/doris/statistics/BaseAnalysisTask.java | 3 ++-
regression-test/suites/statistics/test_update_rows_mv.groovy | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/statistics/BaseAnalysisTask.java
b/fe/fe-core/src/main/java/org/apache/doris/statistics/BaseAnalysisTask.java
index 6819e086ad0..b547ff4146c 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/statistics/BaseAnalysisTask.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/statistics/BaseAnalysisTask.java
@@ -214,7 +214,8 @@ public abstract class BaseAnalysisTask {
|| 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()));
diff --git a/regression-test/suites/statistics/test_update_rows_mv.groovy
b/regression-test/suites/statistics/test_update_rows_mv.groovy
index d9b0d5482c6..c3c12d715db 100644
--- a/regression-test/suites/statistics/test_update_rows_mv.groovy
+++ b/regression-test/suites/statistics/test_update_rows_mv.groovy
@@ -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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]