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/30 21:01:33 UTC

[jira] [Updated] (DRILL-1590) Invalid result returned for queries that has count with limit

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

Hanifi Gunes updated DRILL-1590:
--------------------------------
    Description: 
The following query

{code:sql}
select count(*) from  dfs.`local`.`yelp_academic_dataset_business.json` limit 1
{code}

returns
{panel}
844
{panel}

And this one down here
{code:sql}
select count(*) from  dfs.`local`.`yelp_academic_dataset_business.json` limit 2
{code}

returns 
{panel}
838
844
844
{panel}

Initial impression is that limit seems to work on batches rather than individual records. 

ps: I had to test this on a detached head. We need to verify this on master

  was:
The following query

{code:sql}
select count(*) from  dfs.`local`.`yelp_academic_dataset_business.json` limit 1
{code}

returns
{panel}
844
{panel}

And this one down here
{code:sql}
select count(*) from  dfs.`local`.`yelp_academic_dataset_business.json` limit 2
{code}

returns 
{panel}
838
844
844
{panel}

Initial impression is that limit seems to work on batches rather than individual records. 

ps: I had to test this on a detached head. We need to verify this on 0.7


> Invalid result returned for queries that has count with limit
> -------------------------------------------------------------
>
>                 Key: DRILL-1590
>                 URL: https://issues.apache.org/jira/browse/DRILL-1590
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Hanifi Gunes
>            Assignee: Hanifi Gunes
>
> The following query
> {code:sql}
> select count(*) from  dfs.`local`.`yelp_academic_dataset_business.json` limit 1
> {code}
> returns
> {panel}
> 844
> {panel}
> And this one down here
> {code:sql}
> select count(*) from  dfs.`local`.`yelp_academic_dataset_business.json` limit 2
> {code}
> returns 
> {panel}
> 838
> 844
> 844
> {panel}
> Initial impression is that limit seems to work on batches rather than individual records. 
> ps: I had to test this on a detached head. We need to verify this on master



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