Wout Scheepers commented on BEAM-4759:

I'll create a pull request as this is a quick fix. We're planning on writing 
mutations to spanner in production soon, so would be nice to have the fix 
included by the next release.

> SpannerIO MutationGroupEncoder wrong string encoding length
> -----------------------------------------------------------
>                 Key: BEAM-4759
>                 URL: https://issues.apache.org/jira/browse/BEAM-4759
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>    Affects Versions: 2.5.0
>            Reporter: Wout Scheepers
>            Assignee: Chamikara Jayalath
>            Priority: Major
> When encoding a string, the MutationGroupEncoder's encodePrimitive method 
> uses the string length instead of the byte array length.
> When writing strings with special chars (e.g.: 'é'), this gives problems when 
> decoding.
> Decoding happens according to the byte array length and is implemented 
> correctly.

This message was sent by Atlassian JIRA

Reply via email to