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



##########
File path: 
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/BeamZetaSqlCalcRel.java
##########
@@ -299,7 +295,7 @@ private void outputRow(TimestampedFuture c, 
OutputReceiver<Row> r) throws Interr
       try {
         v = c.future().get();
       } catch (ExecutionException e) {
-        throw (RuntimeException) e.getCause();
+        throw new RuntimeException(checkArgumentNotNull(e.getCause()));

Review comment:
       Sorry, I missed this on the first pass. We want `RuntimeException` to be 
passed through without modification if possible. I believe this will work:
   ```
   if (e.getCause() instanceof RuntimeException) {
     throw (RuntimeException) e.getCause();
   }
   throw new RuntimeException(e);
   ```

##########
File path: 
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/BeamZetaSqlCalcRel.java
##########
@@ -169,12 +169,10 @@ private static TimestampedFuture create(Instant t, 
Future<Value> f) {
     private final Schema outputSchema;
     private final String defaultTimezone;
     private final boolean verifyRowValues;
+    private transient List<Integer> referencedColumns = ImmutableList.of();

Review comment:
       Findbugs is unhappy with these two lines. Tag them with 
`@SuppressFBWarnings("SE_TRANSIENT_FIELD_NOT_RESTORED")`
   
   Also need: `import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;`




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