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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to