deemoliu commented on code in PR #10836:
URL: https://github.com/apache/pinot/pull/10836#discussion_r1214911616


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/BaseTableUpsertMetadataManager.java:
##########
@@ -55,24 +52,21 @@ public void init(TableConfig tableConfig, Schema schema, 
TableDataManager tableD
     Preconditions.checkArgument(!CollectionUtils.isEmpty(_primaryKeyColumns),
         "Primary key columns must be configured for upsert enabled table: %s", 
_tableNameWithType);
 
-    _comparisonColumns = upsertConfig.getComparisonColumns();
-    if (_comparisonColumns == null) {
-      _comparisonColumns = 
Collections.singletonList(tableConfig.getValidationConfig().getTimeColumnName());
+    _upsertConfig = upsertConfig;
+    List<String> comparisonColumns = upsertConfig.getComparisonColumns();
+    if (comparisonColumns == null) {
+      comparisonColumns = 
Collections.singletonList(tableConfig.getValidationConfig().getTimeColumnName());

Review Comment:
   good catch. let me add this part.



-- 
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-unsubscr...@pinot.apache.org

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


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

Reply via email to