You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Jaehwa Jung (JIRA)" <ji...@apache.org> on 2014/07/17 04:49:04 UTC

[jira] [Comment Edited] (TAJO-727) TPC-DS Q32 returns no result.

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

Jaehwa Jung edited comment on TAJO-727 at 7/17/14 2:48 AM:
-----------------------------------------------------------

We can't reproduce this bug. 
For reference, its result not equals to hive result as follows:

{code:xml}
excess_discount_amount
-------------------------------
8140323.5
(1 rows, 40.607 sec, 10 B selected)
{code}

We need to handle this problem at another jira issue.


was (Author: blrunner):
We can't reproduce this bug.

> TPC-DS Q32 returns no result.
> -----------------------------
>
>                 Key: TAJO-727
>                 URL: https://issues.apache.org/jira/browse/TAJO-727
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Hyoungjun Kim
>            Assignee: Jaehwa Jung
>
> I ran TPC-DS Q32 query. 
> {code}
> SELECT sum(cs1.cs_ext_discount_amt) as excess_discount_amount
> FROM (SELECT cs.cs_item_sk as cs_item_sk,
>                              cs.cs_ext_discount_amt as cs_ext_discount_amt
>              FROM catalog_sales cs
>              JOIN date_dim d ON (d.d_date_sk = cs.cs_sold_date_sk)
>              WHERE d.d_date between '2000-01-27' and '2000-04-27') cs1
> JOIN item i ON (i.i_item_sk = cs1.cs_item_sk)
> JOIN (SELECT cs2.cs_item_sk as cs_item_sk,
>                           1.3 * avg(cs_ext_discount_amt) as avg_cs_ext_discount_amt
>            FROM (SELECT cs.cs_item_sk as cs_item_sk,
>                                         cs.cs_ext_discount_amt as cs_ext_discount_amt
>                         FROM catalog_sales cs
>                         JOIN date_dim d ON (d.d_date_sk = cs.cs_sold_date_sk)
>                         WHERE d.d_date between '2000-01-27' and '2000-04-27') cs2
>                         GROUP BY cs2.cs_item_sk) tmp1
> ON (i.i_item_sk = tmp1.cs_item_sk)
> WHERE i.i_manufact_id = 436 and
>                cs1.cs_ext_discount_amt > tmp1.avg_cs_ext_discount_amt;
> {code}
> Tajo returns empty result.
> {noformat}
> result: hdfs://gruter102:6020/tmp/tajo-tajo/staging/q_1396256746100_0001/RESULT, 0 rows (0 B)
> excess_discount_amount
> -------------------------------
> tpcds100>
> {noformat} 
> This query is expected next result.
> {noformat}
> excess_discount_amount
> -------------------------------
> 8119270.359008789
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)