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

NPE in AbstractSqlAccessor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 1.0.0
    • Client - JDBC
    • None

    Description

      I got the following NPE trying to use Drill with JDBC:

      java.lang.NullPointerException
      at org.apache.drill.exec.vector.accessor.AbstractSqlAccessor.getString(AbstractSqlAccessor.java:102)
      at org.apache.drill.exec.vector.accessor.NullableFloat8Accessor.getString(NullableFloat8Accessor.java:87)
      at org.apache.drill.jdbc.AvaticaDrillSqlAccessor.getString(AvaticaDrillSqlAccessor.java:66)
      at net.hydromatic.avatica.AvaticaResultSet.getString(AvaticaResultSet.java:205)

      It was caused by NULL value stored as DOUBLE.

      Attachments

        1. 0001-Fixed-possible-NPE.patch
          1 kB
          Oleg Danilov

        Issue Links

          Activity

            People

              dsbos Daniel Barclay
              olegd Oleg Danilov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: