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

[Java][FlightRPC] 'Signature not found' calling `executeUpdate` on FlightSQL prepared statement

    XMLWordPrintableJSON

Details

    Description

      Hey folks

      I'm hitting the 'signature not found' NPE precondition in ArrowFlightMetaImpl.execute when I prepare a DML statement and call executeUpdate (the prepare step seems to work fine):

                 Preconditions.java:  801  cfjd.org.apache.arrow.util.Preconditions/checkNotNull
           ArrowFlightMetaImpl.java:   86  org.apache.arrow.driver.jdbc.ArrowFlightMetaImpl/execute
           ArrowFlightMetaImpl.java:   96  org.apache.arrow.driver.jdbc.ArrowFlightMetaImpl/execute
             AvaticaConnection.java:  548  cfjd.org.apache.calcite.avatica.AvaticaConnection/executeQueryInternal
      AvaticaPreparedStatement.java:  152  cfjd.org.apache.calcite.avatica.AvaticaPreparedStatement/executeLargeUpdate
      AvaticaPreparedStatement.java:  147  cfjd.org.apache.calcite.avatica.AvaticaPreparedStatement/executeUpdate
      

      It seems that this will always be null in this situation because AvaticaPreparedStatement.executeLargeUpdate calls executeQueryInternal with a null signature, regardless of the signature in the prepared statement itself (which is non-null)?

      Otherwise, enjoying playing with FlightSQL so far - thanks!

      James

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              jarohen James Henderson
              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