[ 
https://issues.apache.org/jira/browse/BEAM-10615?focusedWorklogId=477586&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-477586
 ]

ASF GitHub Bot logged work on BEAM-10615:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Sep/20 02:54
            Start Date: 02/Sep/20 02:54
    Worklog Time Spent: 10m 
      Work Description: jayendra13 commented on a change in pull request #12738:
URL: https://github.com/apache/beam/pull/12738#discussion_r481581885



##########
File path: 
sdks/java/extensions/sql/jdbc/src/test/java/org/apache/beam/sdk/extensions/sql/jdbc/BeamSqlLineIT.java
##########
@@ -198,12 +202,15 @@ private String taxiRideJSON(
     return objectNode.toString();
   }
 
+  /** Suppressing this due to 
https://github.com/typetools/checker-framework/issues/979. */
+  @SuppressWarnings("return.type.incompatible")
   private Future<List<List<String>>> runQueryInBackground(String[] args) {
     return pool.submit(
         (Callable)
             () -> {
               ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-              BeamSqlLine.runSqlLine(args, null, outputStream, null);
+              InputStream inputStream = new ByteArrayInputStream(new byte[0]);
+              BeamSqlLine.runSqlLine(args, inputStream, outputStream, null);

Review comment:
       I got your point, but it would require to annotate the `inputStream` 
[here](https://github.com/julianhyde/sqlline/blob/sqlline-1.4.0/src/main/java/sqlline/SqlLine.java#L615)
 in `begin` method with `@Nullable`, which is outside the project. What could 
be possible workaround here ?




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 477586)
    Time Spent: 2.5h  (was: 2h 20m)

> Eliminate nullability errors from :sdks:java:extensions:sql:jdbc
> ----------------------------------------------------------------
>
>                 Key: BEAM-10615
>                 URL: https://issues.apache.org/jira/browse/BEAM-10615
>             Project: Beam
>          Issue Type: Sub-task
>          Components: dsl-sql
>            Reporter: Jayendra
>            Assignee: Jayendra
>            Priority: P2
>              Labels: starter
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Just edit {{build.gradle}} and set {{enableChecker: true}} and fix some 
> errors!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to