Skip to content

Commit fd52520

Browse files
committed
apache#9351 fix reviewed
1 parent ddad03a commit fd52520

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

  • fe/fe-core/src/main/java/org/apache/doris/load

‎fe/fe-core/src/main/java/org/apache/doris/load/Load.java‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,20 +1045,12 @@ private static void initColumns(Table tbl, List<ImportColumnDesc> columnExprs,
10451045
return;
10461046
}
10471047

1048-
// load sql '(a, b)set(c=a, d=b)', tmpSet save {a,b}.
1049-
Set<String> tmpSet = Sets.newHashSet();
1050-
for (ImportColumnDesc importColumnDesc : copiedColumnExprs) {
1051-
if (importColumnDesc.getExpr() == null) {
1052-
tmpSet.add(importColumnDesc.getColumnName());
1053-
}
1054-
}
1055-
10561048
// init slot desc add expr map, also transform hadoop functions
10571049
for (ImportColumnDesc importColumnDesc : copiedColumnExprs) {
10581050
// make column name case match with real column name
10591051
String columnName = importColumnDesc.getColumnName();
10601052
String realColName;
1061-
if (tbl.getColumn(columnName) == null || tmpSet.contains(columnName)) {
1053+
if (tbl.getColumn(columnName) == null || importColumnDesc.getExpr() == null) {
10621054
realColName = columnName;
10631055
} else {
10641056
realColName = tbl.getColumn(columnName).getName();

0 commit comments

Comments
 (0)