caiconghui commented on a change in pull request #4006:
URL: https://github.com/apache/incubator-doris/pull/4006#discussion_r450637016



##########
File path: fe/src/main/java/org/apache/doris/load/DeleteHandler.java
##########
@@ -507,7 +516,19 @@ private void checkDeleteV2(OlapTable table, Partition 
partition, List<Predicate>
                     LiteralExpr.create(value, 
Type.fromPrimitiveType(column.getDataType()));
                 } catch (AnalysisException e) {
                     // 
ErrorReport.reportDdlException(ErrorCode.ERR_INVALID_VALUE, value);
-                    throw new DdlException("Invalid column value[" + value + 
"]");
+                    throw new DdlException("Invalid column value[" + value + 
"] for column " + columnName);
+                }
+            } else if (condition instanceof InPredicate) {
+                String value = null;
+                try {
+                    InPredicate inPredicate = (InPredicate) condition;
+                    for (int i = 1; i <= inPredicate.getInElementNum(); i++) {
+                        value = ((LiteralExpr) 
inPredicate.getChild(i)).getStringValue();
+                        LiteralExpr.create(value, 
Type.fromPrimitiveType(column.getDataType()));
+                    }

Review comment:
       check valid or throw exception




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

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