Kikyou1997 commented on code in PR #18069:
URL: https://github.com/apache/doris/pull/18069#discussion_r1147260954
##########
fe/fe-core/src/main/java/org/apache/doris/statistics/OlapAnalysisTask.java:
##########
@@ -80,7 +81,8 @@ public void execute() throws Exception {
continue;
}
params.put("partId",
String.valueOf(tbl.getPartition(partName).getId()));
- params.put("partName", String.valueOf(partName));
+ // Avoid error when get the default partition
+ params.put("partName", SqlScanner.isKeyword(partName) ? "`" +
partName + "`" : partName);
Review Comment:
Why don't always add backtick, seems this condition is a little redundant
--
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]