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

Ensure the jdbc-all driver jar includes classes required to return VarChar[]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 1.5.0
    • Component/s: Client - JDBC
    • Labels:
      None
    • Environment:

      Linux / 1.5-SNAPSHOT

      Description

      Hi,

      We are using the 1.5-SNAPSHOT version of the JDBC drilver (all) and we seem to be getting this old thing:

      https://issues.apache.org/jira/browse/DRILL-2482

      We are either doing something wrong or this or this is a regression. Has anyone else experienced not being able to get nested structures via the latest JDBC driver?

      (I'm going to pull the lastest from master to be sure this has not been solved)

      The error we get when accessing a field containing a sub-structure is :
      java.lang.NoClassDefFoundError: org/apache/hadoop/io/Text

      at oadd.org.apache.drill.exec.util.JsonStringArrayList.<clinit>(JsonStringArrayList.java:35)
      at oadd.org.apache.drill.exec.vector.RepeatedVarCharVector$Accessor.getObject(RepeatedVarCharVector.java:293)
      at oadd.org.apache.drill.exec.vector.RepeatedVarCharVector$Accessor.getObject(RepeatedVarCharVector.java:290)
      at oadd.org.apache.drill.exec.vector.accessor.GenericAccessor.getObject(GenericAccessor.java:44)
      at oadd.org.apache.drill.exec.vector.accessor.BoundCheckingAccessor.getObject(BoundCheckingAccessor.java:148)
      at org.apache.drill.jdbc.impl.TypeConvertingSqlAccessor.getObject(TypeConvertingSqlAccessor.java:795)
      at org.apache.drill.jdbc.impl.AvaticaDrillSqlAccessor.getObject(AvaticaDrillSqlAccessor.java:179)
      at oadd.net.hydromatic.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:351)
      at org.apache.drill.jdbc.impl.DrillResultSetImpl.getObject(DrillResultSetImpl.java:420)

      Regards,
      -Stefan

        Attachments

          Activity

            People

            • Assignee:
              jnadeau Jacques Nadeau
              Reporter:
              acmeguy Stefán Baxter
              Reviewer:
              Khurram Faraaz
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: