Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-50127] Implement Avro encoding for MapState and PrefixKeyScanStateEncoder #22

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

ericm-db
Copy link
Owner

@ericm-db ericm-db commented Nov 4, 2024

What changes were proposed in this pull request?

Follow-up to apache#48401. This PR enables Avro encoding for MapState and the PrefixKeyScanStateEncoder

Why are the changes needed?

UnsafeRow is an inherently unstable format that makes no guarantees of being backwards-compatible. Therefore, if the format changes between Spark releases, this could cause StateStore corruptions. Avro is more stable, and inherently enables schema evolution.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Amended and added to unit tests

Was this patch authored or co-authored using generative AI tooling?

No

@ericm-db ericm-db changed the title [WIP] Supporting Map State with Avro encoding [SPARK-50127] Implement Avro encoding for MapState and PrefixKeyScanStateEncoder Nov 4, 2024
ericm-db and others added 3 commits November 4, 2024 14:45
* valuestatettl

* mapstate, valuestate ttl works

* timers

* renaming to suffix key

* cleaning up
@ericm-db ericm-db merged commit 9b8dd5d into avro Nov 7, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant