[Bug](delete) fix the delete ignore char case (#18714)

This commit is contained in:
HappenLee
2023-04-26 07:30:44 +08:00
committed by GitHub
parent 2c836251b2
commit c993964a88
2 changed files with 3 additions and 2 deletions

View File

@ -415,7 +415,8 @@ public class DeleteHandler implements Writable {
throws AnalysisException {
ColumnRange result = ColumnRange.create();
Type type =
table.getBaseSchema().stream().filter(c -> c.getName().equals(colName)).findFirst().get().getType();
table.getBaseSchema().stream().filter(c -> c.getName().equalsIgnoreCase(colName))
.findFirst().get().getType();
boolean hasRange = false;
for (Predicate predicate : conditions) {