lostluck commented on pull request #16489:
URL: https://github.com/apache/beam/pull/16489#issuecomment-1011636544


   There are these warnings?errors? in the Java Precommit:
   
   ```
   > Task :sdks:java:io:google-cloud-platform:compileJava
   
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit/src/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQuerySchemaIOProvider.java:100:
 error: [override.param.invalid] Incompatible parameter type for dataSchema.
     public BigQuerySchemaIO from(String location, Row configuration, Schema 
dataSchema) {
                                                                             ^
     found   : @Initialized @NonNull Schema
     required: @Initialized @Nullable Schema
     Consequence: method
       @Initialized @NonNull BigQuerySchemaIO from(@Initialized @NonNull 
BigQuerySchemaIOProvider this, @Initialized @NonNull String p0, @Initialized 
@NonNull Row p1, @Initialized @NonNull Schema p2) in 
org.apache.beam.sdk.io.gcp.bigquery.BigQuerySchemaIOProvider
     cannot override
       @Initialized @NonNull SchemaIO from(@Initialized @NonNull 
SchemaIOProvider this, @Initialized @NonNull String p0, @Initialized @NonNull 
Row p1, @Initialized @Nullable Schema p2) in 
org.apache.beam.sdk.schemas.io.SchemaIOProvider
   
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit/src/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQuerySchemaIOProvider.java:139:
 error: [return.type.incompatible] incompatible types in return.
         return null;
                ^
     type of expression: null (NullType)
     method return type: @Initialized @NonNull Schema
   
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit/src/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQuerySchemaIOProvider.java:153:
 error: [argument.type.incompatible] incompatible argument for parameter 
tableSpec of from.
               read = read.from(config.getString("table"));
                                                ^
     found   : @Initialized @Nullable String
     required: @Initialized @NonNull String
   
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit/src/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQuerySchemaIOProvider.java:156:
 error: [argument.type.incompatible] incompatible argument for parameter 
tableSpec of from.
               read = read.from(config.getString("query")).usingStandardSql();
                                                ^
     found   : @Initialized @Nullable String
     required: @Initialized @NonNull String
   
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit/src/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQuerySchemaIOProvider.java:159:
 error: [argument.type.incompatible] incompatible argument for parameter 
location of withQueryLocation.
               read = read.withQueryLocation(config.getString("queryLocation"));
                                                             ^
     found   : @Initialized @Nullable String
     required: @Initialized @NonNull String
   
/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Commit/src/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQuerySchemaIOProvider.java:178:
 error: [argument.type.incompatible] incompatible argument for parameter 
tableSpec of to.
               write = write.to(config.getString("table"));
                                                ^
     found   : @Initialized @Nullable String
     required: @Initialized @NonNull String
   ```


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