Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16393

[Java] FlightSqlClientDemoApp does not accept values pass to query, catalog, schema and table arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 8.0.0
    • Java

    Description

      Currently FlightSqlClientDemoApp does not honor the values which are passed as argument for query, catalog, schema and table.

      Eg: The following results in a NullpointerException

      mvn exec:java -Dcheckstyle.skip -Drat.skip=true  -Dexec.mainClass="org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp" -Dexec.args='-host localhost -port 52358 -command Execute -query "select * from APP.INTTABLE"'

       

      [WARNING] 
      java.lang.NullPointerException
          at org.apache.arrow.flight.sql.impl.FlightSql$CommandStatementQuery$Builder.setQuery (FlightSql.java:18056)
          at org.apache.arrow.flight.sql.FlightSqlClient.execute (FlightSqlClient.java:96)
          at org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp.exampleExecute (FlightSqlClientDemoApp.java:191)
          at org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp.executeCommand (FlightSqlClientDemoApp.java:116)
          at org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp.executeApp (FlightSqlClientDemoApp.java:104)
          at org.apache.arrow.flight.sql.example.FlightSqlClientDemoApp.main (FlightSqlClientDemoApp.java:71)
          at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
          at java.lang.Thread.run (Thread.java:748)

       

       

      Attachments

        Issue Links

          Activity

            People

              timvw Tim Van Wassenhove
              timvw Tim Van Wassenhove
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m