You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Hanifi Gunes (JIRA)" <ji...@apache.org> on 2014/10/16 23:25:33 UTC

[jira] [Updated] (DRILL-1547) Selecting records with multiple null fields fails with AssertionError

     [ https://issues.apache.org/jira/browse/DRILL-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hanifi Gunes updated DRILL-1547:
--------------------------------
    Description: 
If reader hits a records with multiple `null` valued fields whose vectors are not yet allocated, running capacity check twice throws AssertionError. 

Take
{panel:title=a.json}
\{"some":null, "field": null\}
{panel}

Running
{code:sql}
select * from dfs.`a.json`
{code}
fails with AssertionError.

The work around is to check value capacity only if vector is allocated. This is an issue that affects sparse JSON files.

  was:
If reader hits a records with multiple `null` valued fields whose vectors are not yet allocated, running capacity check twice throws AssertionError. 

Take
{panel:title=a.json}
\{"some":null, "field": null\}
{panel}

Running
{code:sql}
select * from dfs.`a.json`
{code}
fails with AssertionError.

The work around is not to check value capacity if vector is not allocated. This is an issue that affects sparse JSON files.


> Selecting records with multiple null fields fails with AssertionError
> ---------------------------------------------------------------------
>
>                 Key: DRILL-1547
>                 URL: https://issues.apache.org/jira/browse/DRILL-1547
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Hanifi Gunes
>
> If reader hits a records with multiple `null` valued fields whose vectors are not yet allocated, running capacity check twice throws AssertionError. 
> Take
> {panel:title=a.json}
> \{"some":null, "field": null\}
> {panel}
> Running
> {code:sql}
> select * from dfs.`a.json`
> {code}
> fails with AssertionError.
> The work around is to check value capacity only if vector is allocated. This is an issue that affects sparse JSON files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)