yiguolei commented on code in PR #22144:
URL: https://github.com/apache/doris/pull/22144#discussion_r1273398897
##########
fe/fe-core/src/main/java/org/apache/doris/qe/cache/SqlCache.java:
##########
@@ -35,13 +35,21 @@ public SqlCache(TUniqueId queryId, SelectStmt selectStmt) {
super(queryId, selectStmt);
}
+ public SqlCache(TUniqueId queryId) {
+ super(queryId);
+ }
+
public void setCacheInfo(CacheAnalyzer.CacheTable latestTable, String
allViewExpandStmtListStr) {
this.latestTable = latestTable;
this.allViewExpandStmtListStr = allViewExpandStmtListStr;
}
public String getSqlWithViewStmt() {
- return selectStmt.toSql() + "|" + allViewExpandStmtListStr;
+ if (selectStmt != null) {
+ return selectStmt.toSql() + "|" + allViewExpandStmtListStr;
Review Comment:
what about fold constant? For example, select * from tablet where a =
cur_date(); although the
--
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]