[
https://issues.apache.org/jira/browse/BEAM-4453?focusedWorklogId=120061&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-120061
]
ASF GitHub Bot logged work on BEAM-4453:
----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Jul/18 21:19
Start Date: 06/Jul/18 21:19
Worklog Time Spent: 10m
Work Description: apilloud commented on a change in pull request #5873:
[BEAM-4453] Add schema support for Java POJOs and Java Beans
URL: https://github.com/apache/beam/pull/5873#discussion_r200770146
##########
File path: sdks/java/core/src/main/java/org/apache/beam/sdk/values/Row.java
##########
@@ -197,7 +199,15 @@ public Byte getByte(int idx) {
}
/**
- * Get a {@link TypeName#INT16} value by field index, {@link
ClassCastException} is thrown if
+ * Get a {@link TypeName#BYTES} value by field index, {@link
ClassCastException} is thrown if
+ * schema doesn't match.
+ */
+ public byte[] getBytes(int idx) {
+ return getValue(idx);
+ }
+
+ /**
+ * Get a {@link TypeName#INT16 16} value by field index, {@link
ClassCastException} is thrown if
Review comment:
Looks like there is an extra `16`? (This line should be unchanged.)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 120061)
Time Spent: 2h 50m (was: 2h 40m)
> Provide automatic schema registration for POJOs
> -----------------------------------------------
>
> Key: BEAM-4453
> URL: https://issues.apache.org/jira/browse/BEAM-4453
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-java-core
> Reporter: Reuven Lax
> Assignee: Reuven Lax
> Priority: Major
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)