[ 
https://issues.apache.org/jira/browse/BEAM-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16539993#comment-16539993
 ] 

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
(v7.6.3#76005)

Reply via email to