forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49630][SS] Add flatten option to process collection types with…
… state data source reader ### What changes were proposed in this pull request? Add flatten option to process collection types with state data source reader ### Why are the changes needed? Changes are needed to process entries row-by-row in case we don't have enough memory to fit these collections inside a single row ### Does this PR introduce _any_ user-facing change? Yes Users can provide the following query option: ``` val stateReaderDf = spark.read .format("statestore") .option(StateSourceOptions.PATH, <state_checkpoint_loc>) .option(StateSourceOptions.STATE_VAR_NAME, <state_var_name>) .option(StateSourceOptions.FLATTEN_COLLECTION_TYPES, <true | false>) .load() ``` ### How was this patch tested? Added unit tests ``` [info] Run completed in 1 minute, 10 seconds. [info] Total number of tests run: 12 [info] Suites: completed 1, aborted 0 [info] Tests: succeeded 12, failed 0, canceled 0, ignored 0, pending 0 [info] All tests passed. ``` ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#48110 from anishshri-db/task/SPARK-49630. Authored-by: Anish Shrigondekar <anish.shrigondekar@databricks.com> Signed-off-by: Jungtaek Lim <kabhwan.opensource@gmail.com>
- Loading branch information
1 parent
982028e
commit 73d6bd7
Showing
6 changed files
with
320 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.