ChinmaySKulkarni commented on a change in pull request #913:
URL: https://github.com/apache/phoenix/pull/913#discussion_r539718201



##########
File path: phoenix-core/src/main/java/org/apache/phoenix/util/ScanUtil.java
##########
@@ -1239,4 +1239,21 @@ public static boolean isDummy(List<Cell> result) {
         Cell cell = result.get(0);
         return CellUtil.matchingColumn(cell, EMPTY_BYTE_ARRAY, 
EMPTY_BYTE_ARRAY);
     }
+
+    public static void setWALAnnotationAttributes(PTable table, Scan scan) {

Review comment:
       @gjacoby126 Here is my understanding overall, please correct me if I'm 
wrong. There are 2 basic paths:
   
   1. (Client-side delete and upsert-values) Client issues Puts/Deletes 
directly: This is handled in `MutationState. annotateMutationsWithMetadata()`
   2. (Server-side delete and upsert-selects) Client issues scans, the server 
intercepts this and issues Put/Delete mutations based on the results read: This 
is what this method handles right? My understanding is we set the scan 
attributes in UpsertCompiler and DeleteCompiler and this is intercepted in 
`UngroupedAggregateRegionScanner`  where we read the scan attribute and set it 
on the mutations.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to