Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-4759

SpannerIO MutationGroupEncoder wrong string encoding length

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Implemented
    • 2.5.0
    • 2.6.0
    • io-java-gcp
    • None

    Description

      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.

      Attachments

        Activity

          People

            chamikara Chamikara Madhusanka Jayalath
            wouts Wout Scheepers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: