You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2018/09/14 02:53:00 UTC

[jira] [Resolved] (KYLIN-1989) Sum(expression): result not consistent with hive

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

Shaofeng SHI resolved KYLIN-1989.
---------------------------------
       Resolution: Fixed
    Fix Version/s: v2.4.0

Kylin supports SUM(expression) in 2.4.0. see KYLIN-3359

> Sum(expression): result not consistent with hive
> ------------------------------------------------
>
>                 Key: KYLIN-1989
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1989
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v1.5.2
>            Reporter: Le Van Ha
>            Assignee: hongbin ma
>            Priority: Major
>             Fix For: v2.4.0
>
>         Attachments: hive_result.png, kylin_result.png
>
>
>  When do the following query, 
> SELECT channel.name, sum(case when product.product_vendor <> '' then fact_product.quantity else 0 end) 
> FROM fact_product_sales as fact_product 
> join dim_product as product on fact_product.product_id = product.id 
> join dim_channel as channel on fact_product.channel_id = channel.id  
> GROUP BY channel.name
> -------------------------------------------------------------------
> The result by kylin:
> Buy Button                        0
> Online Store                     0
> -------------------------------------------------------------------
> The result by hive is shown in figure.
> Why is that?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)