Skip to content

Commit

Permalink
use merge_condition
Browse files Browse the repository at this point in the history
  • Loading branch information
caneGuy committed Nov 14, 2022
1 parent c6ffc09 commit c34e417
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.starrocks.common.io.Text;
import com.starrocks.common.io.Writable;
import com.starrocks.common.util.PrintableMap;
import com.starrocks.sql.ast.LoadStmt;

import java.io.DataInput;
import java.io.DataOutput;
Expand All @@ -40,8 +41,6 @@ public class BrokerDesc implements Writable {
private Map<String, String> properties;
private boolean hasBroker;

public static final String MERGE_CONDITION_KEY = "mergeCondition";

// Only used for recovery
private BrokerDesc() {
}
Expand Down Expand Up @@ -77,8 +76,8 @@ public Map<String, String> getProperties() {
}

public String getMergeConditionStr() {
if (properties.containsKey(MERGE_CONDITION_KEY)) {
return properties.get(MERGE_CONDITION_KEY);
if (properties.containsKey(LoadStmt.MERGE_CONDITION)) {
return properties.get(LoadStmt.MERGE_CONDITION);
}
return "";
}
Expand Down

0 comments on commit c34e417

Please sign in to comment.