Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2472

JDBC : ResultSet.wasNull should give proper error message when a user tries to call it before calling getXXX method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0
    • Client - JDBC
    • None

    Description

      git.commit.id.abbrev=7b4c887

      Drill currently throws the below error when we call wasNull before calling getXXX method

      Exception in thread "main" 17:15:07.935 [Client-1] DEBUG o.a.drill.exec.rpc.user.UserClient - Sending response with Sender 557575560
      java.lang.ArrayIndexOutOfBoundsException: 1
      	at org.apache.drill.jdbc.DrillAccessorList.wasNull(DrillAccessorList.java:53)
      	at org.apache.drill.jdbc.DrillCursor.wasNull(DrillCursor.java:138)
      	at net.hydromatic.avatica.AvaticaResultSet.wasNull(AvaticaResultSet.java:201)
      

      Drill should instead give the appropriate error message

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rkins Rahul Kumar Challapalli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: