You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Niel Markwick (JIRA)" <ji...@apache.org> on 2019/02/06 09:18:00 UTC
[jira] [Created] (BEAM-6604) SpannerIO: unspecified key column
value causes NPE
Niel Markwick created BEAM-6604:
-----------------------------------
Summary: SpannerIO: unspecified key column value causes NPE
Key: BEAM-6604
URL: https://issues.apache.org/jira/browse/BEAM-6604
Project: Beam
Issue Type: Bug
Components: io-java-gcp
Affects Versions: 2.9.0, 2.8.0, 2.7.0, 2.6.0, 2.5.0, 2.4.0, 2.10.0
Reporter: Niel Markwick
Assignee: Niel Markwick
Fix For: 2.11.0
When creating a Mutation, if a column value is unspecified where the column is a table key would cause an NPE:
Original exception report in 2.5.0
Caused by: java.lang.NullPointerException
at org.apache.beam.sdk.io.gcp.spanner.MutationGroupEncoder.encodeKey(MutationGroupEncoder.java:489)
at org.apache.beam.sdk.io.gcp.spanner.SpannerIO$SerializeMutationsFn.processElement(SpannerIO.java:922)
Link to line of code:
[https://github.com/apache/beam/blob/29bf6b7ef7092dc11385af935a60bfad2db1a531/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/MutationGroupEncoder.java#L489]
That code has been moved to MutationKeyEncoder in BEAM 2.9.0
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)