deepthi912 commented on code in PR #20261:
URL: https://github.com/apache/pinot/pull/20261#discussion_r4582993364
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/upsert/merger/PartialUpsertColumnarMerger.java:
##########
@@ -70,9 +70,11 @@ public void merge(LazyRow previousRow, GenericRow newRow,
Map<String, Object> re
PartialUpsertColumnMerger merger = _column2Mergers.getOrDefault(column,
_defaultColumnValueMerger);
if (merger instanceof ForceOverwriteMerger) {
// Force Overwrite mergers
- // If the merge strategy is Force Overwrite merger and prevValue is
always overwritten by newValue
- Object prevValue = previousRow.getValue(column);
- resultHolder.put(column, merger.merge(prevValue,
newRow.getValue(column)));
+ // The new row already holds the result: the new value, or for a null
value the placeholder that ingestion
+ // put in the row together with its null marker. Leave the column
untouched so both are kept; putting a
+ // value in the result holder would clear the null marker or replace
an ingestion-normalized placeholder
+ // (e.g. a time column's default) with the schema default.
+ continue;
Review Comment:
No, removed in afa1edbd7c. `PartialUpsertColumnarMerger` now tracks
FORCE_OVERWRITE columns by strategy and skips them, and
`PartialUpsertColumnMergerFactory` rejects FORCE_OVERWRITE since there is
nothing to merge (covered by `testForceOverwriteHasNoMerger`).
`OverwriteMerger` stays: external mergers still get it from the factory.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]