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

2017-02-06 Thread liyang (JIRA)

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

liyang commented on KYLIN-2329:
---

Cannot reproduce on latest master. Perhaps, the recent upgrade of calcite 
solved this.

> 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
>Assignee:  Kaige Liu
> Fix For: v2.0.0
>
>
> 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.15#6346)


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

2017-01-06 Thread liyang (JIRA)

[ 
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 (sky...@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)