You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "liyang (JIRA)" <ji...@apache.org> on 2017/01/07 02:25:58 UTC

[jira] [Commented] (KYLIN-2329) Between 0.06 - 0.01 and 0.06 + 0.01, returns incorrect result

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

liyang commented on KYLIN-2329:
-------------------------------

A similar case was reported by Wang Sheng (skyyws@163.com).
{code}
select PRODUCT_LOOKUP.PRODUCT_NAME,SUM(SALES_FACT.STORE_SALES) from SALES_FACT
inner join PRODUCT_LOOKUP on PRODUCT_LOOKUP.PRODUCT_ID=SALES_FACT.PRODUCT_ID
where PRODUCT_LOOKUP.PRODUCT_NAME like '%' || 'Label' || '%'
group by PRODUCT_LOOKUP.PRODUCT_NAME
{code}

> Between 0.06 - 0.01 and 0.06 + 0.01, returns incorrect result
> -------------------------------------------------------------
>
>                 Key: KYLIN-2329
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2329
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: liyang
>
> A TPC-H query returns incorrect result:
> {code}
> select
>     sum(l_saleprice) as revenue
> from
>     v_lineitem
> where
>     l_shipdate >= '1993-01-01'
>     and l_shipdate < '1994-01-01'
>     and l_discount between 0.06 - 0.01 and 0.06 + 0.01
>     and l_quantity < 25;
> {code}
> The result becomes correct if change condition to below
> {code}
>     and l_discount between 0.05 and 0.07
> {code}



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