[
https://issues.apache.org/jira/browse/BEAM-9113?focusedWorklogId=371130&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-371130
]
ASF GitHub Bot logged work on BEAM-9113:
----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jan/20 21:43
Start Date: 13/Jan/20 21:43
Worklog Time Spent: 10m
Work Description: TheNeuralBit commented on pull request #10569:
[BEAM-9113] Fix serialization proto logical types
URL: https://github.com/apache/beam/pull/10569#discussion_r366044452
##########
File path:
sdks/java/extensions/protobuf/src/main/java/org/apache/beam/sdk/extensions/protobuf/ProtoSchemaLogicalTypes.java
##########
@@ -31,8 +32,13 @@
public abstract static class NanosType<T> implements LogicalType<T, Row> {
private final String identifier;
- private static final Schema SCHEMA =
-
Schema.builder().addInt64Field("seconds").addInt32Field("nanos").build();
+ private static final Schema SCHEMA;
+
+ static {
+ Schema schema =
Schema.builder().addInt64Field("seconds").addInt32Field("nanos").build();
+ schema.setUUID(UUID.fromString("dc5915f1-6db8-3134-9444-4980fb088e92"));
Review comment:
I don't think this is a great long-term solution. Do we need to get a fix in
soon (like before the 2.19.0 cut) or is there time to consider a better
solution? If we need to get it in soon I think we should file a follow-up jira
and link it here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 371130)
Time Spent: 20m (was: 10m)
> Protobuf NanosType<T> serialisation issues
> ------------------------------------------
>
> Key: BEAM-9113
> URL: https://issues.apache.org/jira/browse/BEAM-9113
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Reporter: Alex Van Boxel
> Assignee: Alex Van Boxel
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> TheĀ NanosType<T> has 2 known issues:
> * Schema serialisation expects the getArgument to not return a null value
> * UUID of the base type will not be (de)serialised as it is static
--
This message was sent by Atlassian Jira
(v8.3.4#803005)