Skip to content

Commit

Permalink
[BugFix] Fail to add custom stream load table properties (StarRocks#356)
Browse files Browse the repository at this point in the history
Signed-off-by: liuyang <[email protected]>
  • Loading branch information
Lyang77 authored Apr 29, 2024
1 parent eb5f205 commit cc8689d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public StreamLoadTableProperties getDefaultTableProperties() {

public StreamLoadTableProperties getTableProperties(String uniqueKey, String database, String table) {
StreamLoadTableProperties tableProperties = tablePropertiesMap.getOrDefault(uniqueKey, defaultTableProperties);
if (!tableProperties.getDatabase().equals(database) || !tableProperties.getDatabase().equals(table)) {
if (!tableProperties.getDatabase().equals(database) || !tableProperties.getTable().equals(table)) {
StreamLoadTableProperties.Builder tablePropertiesBuilder = StreamLoadTableProperties.builder();
tablePropertiesBuilder = tablePropertiesBuilder.copyFrom(tableProperties).database(database).table(table);
return tablePropertiesBuilder.build();
Expand Down

0 comments on commit cc8689d

Please sign in to comment.