[SPARK-54117][SS] Throw better error to indicate that TWS is only supported with RocksDB state store provider #52822
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Change error message when user uses TransformWithState with state store provider other than RocksDB state store provider.
Why are the changes needed?
Improves user experience by making it clear that they need to use RocksDBStateStoreProvider.
Does this PR introduce any user-facing change?
Yes, changes error message when user uses TransformWithState with HDFSBackedStateStoreProvider.
Old error message:
[UNSUPPORTED_FEATURE.STATE_STORE_MULTIPLE_COLUMN_FAMILIES] The feature is not supported: Creating multiple column families with HDFSBackedStateStoreProvider is not supported.New error message:
[UNSUPPORTED_FEATURE.STORE_BACKEND_NOT_SUPPORTED_FOR_TWS] The feature is not supported: Store backend HDFSBackedStateStoreProvider is not supported by TransformWithState operator. Please use RocksDBStateStoreProvider.How was this patch tested?
Unit tests: TransformWithStateSuite, TransformWithStateValidationSuite.
Was this patch authored or co-authored using generative AI tooling?
No.