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 2016/03/28 03:21:25 UTC

[jira] [Commented] (DRILL-4529) SUM() with windows function result in mismatch nullability

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

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

GitHub user hsuanyi opened a pull request:

    https://github.com/apache/drill/pull/447

    DRILL-4529: Force $SUM0 to be used when Window Sum is supposed to ret…

    …urned non-nullable type

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hsuanyi/incubator-drill DRILL-4529

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/447.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #447
    
----
commit aea449236c30948a88d46eb27a8b886f1d6a0c6f
Author: Hsuan-Yi Chu <hs...@usc.edu>
Date:   2016-03-27T23:18:21Z

    DRILL-4529: Force $SUM0 to be used when Window Sum is supposed to returned non-nullable type

----


> SUM() with windows function result in mismatch nullability
> ----------------------------------------------------------
>
>                 Key: DRILL-4529
>                 URL: https://issues.apache.org/jira/browse/DRILL-4529
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Krystal
>            Assignee: Sean Hsuan-Yi Chu
>              Labels: limit0
>
> git.commit.id.abbrev=cee5317
> select 
> 	sum(1) 	over w sum1, 
> 	sum(5) 	over w sum5,
> 	sum(10) over w sum10
> from 
> 	j1_v
> where 
> 	c_date is not null
> window w as (partition by c_date);
> Output from test:
> limit 0: [columnNoNulls, columnNoNulls, columnNoNulls]
> regular: [columnNullable, columnNullable, columnNullable]



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