You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/02 15:01:00 UTC

[jira] [Commented] (DRILL-7587) Query with VALUES clause returns the wrong result when planner.slice_target is small

    [ https://issues.apache.org/jira/browse/DRILL-7587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17049280#comment-17049280 ] 

ASF GitHub Bot commented on DRILL-7587:
---------------------------------------

asfgit commented on pull request #2002: DRILL-7587: Fix ValuesPrule distribution trait type
URL: https://github.com/apache/drill/pull/2002
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Query with VALUES clause returns the wrong result when planner.slice_target is small
> ------------------------------------------------------------------------------------
>
>                 Key: DRILL-7587
>                 URL: https://issues.apache.org/jira/browse/DRILL-7587
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.16.0, 1.17.0
>            Reporter: Vova Vysotskyi
>            Assignee: Arina Ielchiieva
>            Priority: Critical
>              Labels: ready-to-commit
>             Fix For: 1.18.0
>
>
> *Problem description*
>  The query returns the wrong result when {{planner.slice_target}} is less than the rows count returned fromĀ {{VALUES}}.
> *Steps to reproduce*
>  1. Set {{planner.slice_target}} to 1:
> {code:sql}
> set `planner.slice_target`=1;
> {code}
> 2. Run query with {{VALUES}} clause which returns more rows than 1:
> {code:sql}
> select id, name from (values(1234567890123456789, 'a'), (-1234567890123456789, 'z')) t(id, name);
> {code}
> *Expected result*
> {noformat}
> +----------------------+------+
> |          id          | name |
> +----------------------+------+
> | 1234567890123456789  | a    |
> | -1234567890123456789 | z    |
> +----------------------+------+
> {noformat}
> *Actual result*
> {noformat}
> +----------------------+------+
> |          id          | name |
> +----------------------+------+
> | 1234567890123456789  | a    |
> | 1234567890123456789  | a    |
> | -1234567890123456789 | z    |
> | -1234567890123456789 | z    |
> +----------------------+------+
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)