Skip to content

[SPARK-50526][SS] Add store encoding format conf into offset log and block non supported stateful operators from using avro #49121

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

Closed
wants to merge 7 commits into from

Conversation

anishshri-db
Copy link
Contributor

What changes were proposed in this pull request?

Add store encoding format conf into offset log and block non supported stateful operators from using avro

Why are the changes needed?

Changes are needed to ensure that encoding format info is stored in offset log and that trying to use avro in a query that has stateful operators that don't support this encoding format yet will result in query failure.

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

Added unit tests

[info] Run completed in 2 seconds, 547 milliseconds.
[info] Total number of tests run: 6
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 6, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 13 s, completed Dec 9, 2024, 6:15:25 PM

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

No

…k non supported stateful operators from using avro
@anishshri-db
Copy link
Contributor Author

cc - @ericm-db @HeartSaVioR - PTAL, thx !

Copy link
Contributor

@ericm-db ericm-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending comment

Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add the test for checking the default value? We can use the traditional approach with Spark 3.5 checkpoint.

@anishshri-db
Copy link
Contributor Author

Shall we add the test for checking the default value? We can use the traditional approach with Spark 3.5 checkpoint.

Done - added the test

Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@HeartSaVioR
Copy link
Contributor

Thanks! Merging to master.

dongjoon-hyun added a commit that referenced this pull request Feb 12, 2025
### What changes were proposed in this pull request?

This PR aims to add `configName` Scalastyle rule to prevent invalid config names.

### Why are the changes needed?

To prevent repetitive mistake pattern
- #45649
- #48149
- #49121

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Currently, this PR will fail at Scalastyle test because the `master` branch is broken. We can merge this after the following PR.
- #49897

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

No.

Closes #49900 from dongjoon-hyun/SPARK-51173.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request Feb 12, 2025
### What changes were proposed in this pull request?

This PR aims to add `configName` Scalastyle rule to prevent invalid config names.

### Why are the changes needed?

To prevent repetitive mistake pattern
- #45649
- #48149
- #49121

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Currently, this PR will fail at Scalastyle test because the `master` branch is broken. We can merge this after the following PR.
- #49897

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

No.

Closes #49900 from dongjoon-hyun/SPARK-51173.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 274dc5e)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request Feb 23, 2025
This PR aims to add `configName` Scalastyle rule to prevent invalid config names.

To prevent repetitive mistake pattern
- #45649
- #48149
- #49121

No.

Currently, this PR will fail at Scalastyle test because the `master` branch is broken. We can merge this after the following PR.
- #49897

No.

Closes #49900 from dongjoon-hyun/SPARK-51173.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 274dc5e)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

3 participants