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

Set SchemaCoder for key in WithKeys transform #31711

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

Amar3tto
Copy link
Contributor

@Amar3tto Amar3tto commented Jun 28, 2024

Fixes #29577


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions github-actions bot added the java label Jun 28, 2024
@Amar3tto Amar3tto force-pushed the with-keys-schema-coder branch from d74efdd to 5de1ce9 Compare June 28, 2024 14:51
@Amar3tto Amar3tto force-pushed the with-keys-schema-coder branch from 5de1ce9 to bacb9ec Compare June 29, 2024 06:27
@Amar3tto
Copy link
Contributor Author

Run Java PreCommit

@Amar3tto Amar3tto marked this pull request as ready for review June 29, 2024 11:36
@Amar3tto
Copy link
Contributor Author

R: @aromanenko-dev

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

Copy link
Contributor

@aromanenko-dev aromanenko-dev left a comment

Choose a reason for hiding this comment

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

Thanks!
LGTM, just a minor question

schemaRegistry.getFromRowFunction(keyType));
result.setCoder(KvCoder.of(schemaCoder, in.getCoder()));
} catch (NoSuchSchemaException exception) {
// No Schema.
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we fail in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think no, because the coder still could be set manually. There is a comment below: "let lazy coder inference have a try"

@aromanenko-dev aromanenko-dev merged commit bf8afb8 into apache:master Jul 2, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants