anishshri-db opened a new pull request, #48148:
URL: https://github.com/apache/spark/pull/48148

   ### What changes were proposed in this pull request?
   Add support for state variables with value state collection types and read 
change feed options
   
   
   ### Why are the changes needed?
   Without this, we cannot support reading per key changes for state variables 
used with stateful processors.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes
   
   Users can now query value state variables with the following query:
   
   ```
           val changeFeedDf = spark.read
               .format("statestore")
               .option(StateSourceOptions.PATH, <checkpoint_loc>)
               .option(StateSourceOptions.STATE_VAR_NAME, <state_var_name>)
               .option(StateSourceOptions.READ_CHANGE_FEED, true)
               .option(StateSourceOptions.CHANGE_START_BATCH_ID, 0)
               .load()
   ```
   
   
   ### How was this patch tested?
   Added unit tests
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


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