[
https://issues.apache.org/jira/browse/DRILL-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Parth Chandra updated DRILL-1303:
---------------------------------
Attachment: DRILL-1303.patch.diff
> C client throws AssertionError on complex types
> -----------------------------------------------
>
> Key: DRILL-1303
> URL: https://issues.apache.org/jira/browse/DRILL-1303
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - C++
> Reporter: Hanifi Gunes
> Assignee: Parth Chandra
> Fix For: 0.5.0
>
> Attachments: DRILL-1303.patch.diff, mobile-small.json, small.json
>
>
> Running:
> {code}
> ./querySubmitter query="select * from dfs.`/path/to/mobile-small.json`;"
> connectStr="local=localhost:31010" type="sql" api="sync"
> {code}
> Prints out records partially as follows:
> {panel}
> 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"
> }
> {panel}
> And stops raising an AssertionError
> {panel}
> 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)
> {panel}
--
This message was sent by Atlassian JIRA
(v6.2#6252)