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

ByteArray should not be considered iterable #528

Open
zhumin8 opened this issue Apr 12, 2022 · 0 comments
Open

ByteArray should not be considered iterable #528

zhumin8 opened this issue Apr 12, 2022 · 0 comments
Labels
P3 type: bug Something isn't working

Comments

@zhumin8
Copy link
Contributor

zhumin8 commented Apr 12, 2022

When trying to write a ByteArray field with spring data, fails with error.

When binding collections, Parameters.in(SpannerType.of(Type.array(...))) must be used.; nested exception is com.google.cloud.spanner.r2dbc.BindingFailureException: When binding collections, Parameters.in(SpannerType.of(Type.array(...))) must be used.))

This exception is thrown from IterableBinder.java. ByteArray should not be considered iterable. It should convert to equivalent of a single object.

For reference, we avoid considering ByteArray an iterable in Spring Data spanner with a workaround here.

@zhumin8 zhumin8 added type: bug Something isn't working P3 labels Apr 12, 2022
@elefeint elefeint added this to the h2-2022-candidates milestone May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants