nanfeng1999 commented on code in PR #19473:
URL: https://github.com/apache/doris/pull/19473#discussion_r1190567714


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java:
##########
@@ -342,6 +342,7 @@ private void init(String s, Type type) throws 
AnalysisException {
             Preconditions.checkArgument(type.isDateType());
             TemporalAccessor dateTime = null;
             boolean parsed = false;
+            s = s.replace("'", "");

Review Comment:
   In the function `partitionInfo.toPartitionDesc`,it will call 
`partitionInfo.toPartitionValue`. In this function,there is a `expr.toSql()` to 
construct partitionValue. `expr.toSql()` will contain "'". However, it is not 
permitted when executing the sql with symbol "'"



-- 
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]

Reply via email to