apilloud commented on a change in pull request #16034:
URL: https://github.com/apache/beam/pull/16034#discussion_r758621576



##########
File path: 
sdks/java/extensions/sql/zetasql/src/test/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSqlDialectSpecTest.java
##########
@@ -362,7 +362,7 @@ public void testInArray() {
 
     PCollection<Row> stream = execute(sql);
 
-    final Schema schema = Schema.builder().addNullableField("field1", 
FieldType.BOOLEAN).build();
+    Schema.builder().addNullableField("field1", FieldType.BOOLEAN).build();

Review comment:
       nit: same, just delete.

##########
File path: 
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/rel/BeamCalcRel.java
##########
@@ -244,6 +244,7 @@ private RowCoder getErrorRowCoder(PCollection<Row> 
upstream, InputGetterImpl inp
     private final boolean verifyRowValues;
     private final List<String> jarPaths;
 
+    @SuppressWarnings("unused")

Review comment:
       This and the one in BeamZetaSqlCalcRel are both accessed by reflection. 
Would making them `public` fix this without the suppression?

##########
File path: 
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/cep/PatternCondition.java
##########
@@ -26,6 +26,7 @@
  */
 public abstract class PatternCondition implements Serializable {
 
+  @SuppressWarnings("unused") // Affects a public api

Review comment:
       Is it possible to delete this variable and instead put the annotation on 
the constructor?

##########
File path: 
sdks/java/extensions/sql/zetasql/src/test/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSqlDialectSpecTest.java
##########
@@ -346,7 +346,7 @@ public void testIn() {
 
     PCollection<Row> stream = execute(sql);
 
-    final Schema schema = Schema.builder().addNullableField("field1", 
FieldType.BOOLEAN).build();
+    Schema.builder().addNullableField("field1", FieldType.BOOLEAN).build();

Review comment:
       nit: This doesn't have side effects, you can just delete it.




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