iemejia commented on a change in pull request #14854:
URL: https://github.com/apache/beam/pull/14854#discussion_r637219357
##########
File path: sdks/java/core/src/test/java/org/apache/beam/sdk/io/ReadTest.java
##########
@@ -149,6 +151,13 @@ public void populateDisplayData(DisplayData.Builder
builder) {
assertThat(unboundedDisplayData, hasDisplayItem("maxReadTime",
maxReadTime));
}
+ @Test
+ public void testReadBoundedTypeDescriptor() {
+ PCollection<String> input = pipeline.apply(Read.from(new
SerializableBoundedSource()));
+ TypeDescriptor<String> typeDescriptor = input.getTypeDescriptor();
+ assertEquals(String.class, typeDescriptor.getType());
Review comment:
Just added the case with generics, please tell me if this is what you
had in mind.
--
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]