[fix](group commit) Fix syntax error when insert into table which column names contain keyword (#33322)
This commit is contained in:
@ -91,7 +91,7 @@ public class GroupCommitPlanner {
|
||||
}
|
||||
TStreamLoadPutRequest streamLoadPutRequest = new TStreamLoadPutRequest();
|
||||
if (targetColumnNames != null) {
|
||||
streamLoadPutRequest.setColumns(String.join(",", targetColumnNames));
|
||||
streamLoadPutRequest.setColumns("`" + String.join("`,`", targetColumnNames) + "`");
|
||||
if (targetColumnNames.stream().anyMatch(col -> col.equalsIgnoreCase(Column.SEQUENCE_COL))) {
|
||||
streamLoadPutRequest.setSequenceCol(Column.SEQUENCE_COL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user