Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50654][SS][TESTS][FOLLOWUP] Fix compile issue of `RocksDBState…
…StoreCheckpointFormatV2Suite` ### What changes were proposed in this pull request? This PR replaces `metadata.stateUniqueIds(0)` with `metadata.stateUniqueIds.head(0)` to fix the compilation issue in `RocksDBStateStoreCheckpointFormatV2Suite`. The compilation error occurred because the type of `stateUniqueIds` was changed from `stateUniqueIds: Map[Long, Array[Array[String]]] = Map.empty` to `stateUniqueIds: Option[Map[Long, Array[Array[String]]]] = None` in #49278. ### Why are the changes needed? Fix the compilation error in GitHub Actions: - https://github.com/apache/spark/actions/runs/12801139497/job/35690169405 - https://github.com/apache/spark/actions/runs/12801160621/job/35690189293 ![image](https://github.com/user-attachments/assets/a94ab85f-9f5d-49cd-9eb6-01258b367cf4) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass GitHub Actions - manual check: ``` build/sbt "sql/testOnly *RocksDBStateStoreCheckpointFormatV2Suite" ``` ``` [info] Run completed in 1 minute, 33 seconds. [info] Total number of tests run: 17 [info] Suites: completed 1, aborted 0 [info] Tests: succeeded 17, 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 #49523 from LuciferYang/SPARK-50654-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information