rkrishn7 commented on PR #27664:
URL: https://github.com/apache/datafusion/pull/27664#issuecomment-7148659976

   > @rkrishn7 thanks for reworking this with the shared probe. I left one 
request: a `lookup` test for the single-dictionary-column fast path.
   > 
   > Optional: the Rationale currently points only to #27498 and #27499. A 
first paragraph that states the need would let a reader judge the PR without 
opening them, for example:
   > 
   > > A caller that keeps several `GroupValues` instances, such as TTL-bounded 
state with one instance per time window (#27498), needs to check which keys of 
a batch an instance already holds. Today the only way to check is `intern`, 
which stores every miss, so an instance that should only be read keeps growing 
until it is dropped. This PR adds `GroupValues::lookup`, which returns the 
stored group id or `MISSING_GROUP` and never inserts. It shares each 
implementation's probe code with `intern` through a `const INSERT: bool` 
parameter, so only the no-insert branches are new. It replaces #27499.
   
   Thanks for the review @jayzhan211. Updated the summary with this context


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

Reply via email to