abstractdog commented on pull request #1280:
URL: https://github.com/apache/hive/pull/1280#issuecomment-673892379


   > @abstractdog
   > I am almost ok with this patch. However I still dont understand how this 
integrates with `ProcessingModeHashAggregate`. Since there are multiple 
VectorAggregationBufferRows in hash mode, I think we should `finish` each of 
them as we process them. Otherwise, we pass to the next operator in the 
pipeline without completing the bloom filter. Also, since hash mode dynamically 
allocates and frees VectorAggregationBufferRows these `finish`es should happen 
as we deallocate each of them, rather than only at the end of the operator.
   
   Good point. I was creating this patch by focusing on finishing buffers 
correctly, I think I've already taken care of by this, please take a look:
   
https://github.com/apache/hive/pull/1280/commits/0ada66534a937b8f4492d14f508903fa98402aed#diff-07c28d3f5c72db581b9cd4fa424a0ecbR675
   
   As you can see, I'm calling finish before every instance of writeSingleRow. 
I'm assuming that writeSingleRow is a point where a buffer should be finished 
for writing. In ProcessingModeHashAggregate, the above part is enclosed in an 
iteration on buffers in flush method. Are you aware of any other places where I 
should finish a buffer?


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to