kennknowles commented on a change in pull request #14854:
URL: https://github.com/apache/beam/pull/14854#discussion_r637039449



##########
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:
       Do you want to try a test where the source has a generic variable?




-- 
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]


Reply via email to