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

C client throws AssertionError on complex types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • Client - C++
    • None

    Description

      Running:

      ./querySubmitter query="select * from dfs.`/path/to/mobile-small.json`;" connectStr="local=localhost:31010" type="sql" api="sync"
      

      Prints out records partially as follows:

      ROW: 32 {
      "cust_id" : 40,
      "device" : "AOS4.2",
      "state" : "nj"
      } {
      "camp_id" : 8,
      "keywords" : [ "justice", "it's", "got", "i'll", "the", "in", "dad" ]
      } {
      "prod_id" : [ 172, 127, 1, 430, 17, 238 ],
      "purch_flag" : "false"
      }
      ROW: 33 {
      "cust_id" : 4,
      "device" : "IOS5",
      "state" : "or"
      } {
      "camp_id" : 9,
      "keywords" : [ ]
      } {
      "prod_id" : [ 104, 65, 242, 11, 17, 23, 294, 187, 296, 208, 8 ],
      "purch_flag" : "false"
      }

      And stops raising an AssertionError

      Assertion failed: ((index + sizeof(T) <= this->m_length)), function readAt, file /Users/hgunes/workspaces/mapr/incubator-drill/contrib/native/client/src/clientlib/../include/drill/recordBatch.hpp, line 128.
      ROW: 34 fish: Job 1, './querySubmitter query="select * from dfs.`/Users/hgunes/workspaces/mapr/incubator-drill/data/mobile-small.json`;" connectStr="local=localhost:31010" type="sql" api="sync"' terminated by signal SIGABRT (Abort)

      Attachments

        1. small.json
          55 kB
          Hanifi Gunes
        2. mobile-small.json
          4.65 MB
          Hanifi Gunes
        3. DRILL-1303.patch.diff
          5 kB
          Parth Chandra

        Issue Links

          Activity

            People

              parthc Parth Chandra
              hgunes Hanifi Gunes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: