[
https://issues.apache.org/jira/browse/DRILL-7587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17047668#comment-17047668
]
ASF GitHub Bot commented on DRILL-7587:
---------------------------------------
arina-ielchiieva commented on pull request #2002: DRILL-7587: Fix ValuesPrule
distribution trait type
URL: https://github.com/apache/drill/pull/2002
[DRILL-7587](https://issues.apache.org/jira/browse/DRILL-7587): Fix
ValuesPrule distribution trait type
## Description
Incorrect result was retuning due to absence of singleton distribution trait
which forces to run such type of queries only in one fragment.
## Documentation
NA
## Testing
Add unit tests and run full test suit, including Functional and Advanced
tests.
----------------------------------------------------------------
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:
[email protected]
> 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
> 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)