HeartSaVioR opened a new pull request, #55226:
URL: https://github.com/apache/spark/pull/55226

   ### What changes were proposed in this pull request?
   
   This PR proposes to introduce a new API "scan/scanWithMultiValues" in 
StateStore. This new API is mostly an optimization focused on RocksDB state 
store provider.
   
   The new API receives startKey (inclusive) and endKey (exclusive), and 
provides valid entries in the range. Since the API implies we have orderliness 
between startKey and endKey, the caller should be aware of the ordering for the 
keys, most likely being coupled with state key encoders, e.g. range scan 
encoder, timestamp prefix/postfix encoder.
   
   ### Why are the changes needed?
   
   This will enable the pattern of range scan to optimize further, effectively 
skipping tombstones and valid keys in both sides (before the lower bound, after 
the upper bound) within CF.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   New UTs.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude 4.6 Opus


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