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

error message for partitionByKey makaes debugging a bit difficult #5468

Closed
snallapa opened this issue Sep 3, 2024 · 1 comment · Fixed by #5527
Closed

error message for partitionByKey makaes debugging a bit difficult #5468

snallapa opened this issue Sep 3, 2024 · 1 comment · Fixed by #5527

Comments

@snallapa
Copy link

snallapa commented Sep 3, 2024

when using partitionByKey if the pipeline encounters a key that is not in the input set. Right now you get:

org.apache.beam.sdk.util.UserCodeException: java.lang.IndexOutOfBoundsException: Partition function returned out of bounds index: -1 not in [0..2)

It would be great if the key that was not in the input set was printed, maybe even alongside the input set like keyset: [], missing key: []

@kellen
Copy link
Contributor

kellen commented Sep 3, 2024

For specifically partitionByKey we are providing the partition function so should be able to capture the key not found when index is returned as -1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants