You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/07/04 18:13:15 UTC

[GitHub] [incubator-pinot] jackjlli commented on a change in pull request #7125: Fix UpsertConfig JSON deserialization.

jackjlli commented on a change in pull request #7125:
URL: https://github.com/apache/incubator-pinot/pull/7125#discussion_r663538771



##########
File path: pinot-spi/src/main/java/org/apache/pinot/spi/config/table/UpsertConfig.java
##########
@@ -37,18 +39,15 @@
     APPEND, INCREMENT, OVERWRITE, UNION
   }
 
+  @JsonPropertyDescription("Upsert mode.")
   private final Mode _mode;
-  private final Map<String, Strategy> _partialUpsertStrategies;
 
-  public UpsertConfig(@JsonProperty(value = "mode", required = true) Mode mode) {

Review comment:
       Can we just keep this constructor and make it call `this(mode, null)`? By doing so, you don't have to change all the places that invoke this method.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org