You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/12/30 17:47:00 UTC

[GitHub] [beam] y1chi commented on a change in pull request #16388: [BEAM-13430] Fix class not found error for example integration tests …

y1chi commented on a change in pull request #16388:
URL: https://github.com/apache/beam/pull/16388#discussion_r776818179



##########
File path: examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java
##########
@@ -60,7 +60,7 @@
 
   @BeforeClass
   public static void setUp() {
-    PipelineOptionsFactory.register(BigQueryTornadoesITOptions.class);
+    PipelineOptionsFactory.register(TestPipelineOptions.class);

Review comment:
       I was getting 
   ```
   java.lang.IllegalArgumentException: Property [input] is marked with contradictory annotations. Found [[Default.String(value=gs://apache-beam-samples/shakespeare/) on org.apache.beam.examples.complete.TfIdf$Options#getInput()], [Default.String(value=clouddataflow-readonly:samples.weather_stations) on org.apache.beam.examples.cookbook.BigQueryTornadoes$Options#getInput()]].
   ```
   in test, https://ci-beam.apache.org/job/beam_PostCommit_Java_DataflowV1_PR/61/testReport/org.apache.beam.examples.cookbook/BigQueryTornadoesIT/classMethod/.
   
   Is this a bug for the validation in PipelineOptionsFactory.register?




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

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org