Jibing-Li commented on code in PR #40680:
URL: https://github.com/apache/doris/pull/40680#discussion_r1949128256
##########
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java:
##########
@@ -206,6 +207,9 @@ public List<AnalysisInfo>
buildAnalysisInfosForDB(DatabaseIf<TableIf> db, Analyz
if (table instanceof View) {
continue;
}
+ if (table.isTemporary()) {
Review Comment:
If we need to skip analyzing temp table, we also need to skip it in
AnalysisManager.buildAnalysisJobInfo and StatisticsAutoCollector.processOneJob.
##########
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java:
##########
@@ -304,11 +308,23 @@ private void sendJobId(List<AnalysisInfo> analysisInfos,
boolean proxy) {
row.add(databaseIf.isPresent() ? databaseIf.get().getFullName() :
"DB may get deleted");
if (databaseIf.isPresent()) {
Optional<? extends TableIf> table =
databaseIf.get().getTable(analysisInfo.tblId);
- row.add(table.isPresent() ? table.get().getName() : "Table may
get deleted");
+ row.add(table.isPresent() ?
Util.getTempTableDisplayName(table.get().getName())
Review Comment:
Why do we need to do this and the following about newColNames if we skip
analyze temp table?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]