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

Aman Sinha edited comment on DRILL-2918 at 7/31/15 3:40 PM:
------------------------------------------------------------

I tested with Parquet data sf1 scale factor.   The query returns no rows but 
then I ran a subset of the query on the Item table and that returned 0 rows 
too: 
{code}
0: jdbc:drill:zk=local> select count(*) from item where i_manufact_id IN 
(843,815,850,840) and i_current_price BETWEEN 20 AND 20 + 30;
+---------+
| EXPR$0  |
+---------+
| 0       |
+---------+
{code}
Then I ran the entire query on a Postgres SF1 instance of TPC-DS and got 0 
rows. [~agirish] Is your baseline result correct ? 

For the Text format IOBE, I did not see any error logs attached...can you 
attach if this is still an issue ?  Also pls provide the view definitions.  


was (Author: amansinha100):
I tested with Parquet data sf1 scale factor.   The query returns no rows but 
then I ran a subset of the query on the Item table and that returned 0 rows 
too: 
{code}
0: jdbc:drill:zk=local> select count(*) from item where i_manufact_id IN 
(843,815,850,840) and i_current_price BETWEEN 20 AND 20 + 30;
+---------+
| EXPR$0  |
+---------+
| 0       |
+---------+
{code}
Then I ran the entire query on a Postgres SF1 instance of TPC-DS and got 0 
rows.  Is your baseline result correct ? 

For the Text format IOBE, I did not see any error logs attached...can you 
attach if this is still an issue ?  Also pls provide the view definitions.  

> TPC-DS query 37 fails with IOBE
> -------------------------------
>
>                 Key: DRILL-2918
>                 URL: https://issues.apache.org/jira/browse/DRILL-2918
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 0.9.0
>            Reporter: Abhishek Girish
>            Assignee: Aman Sinha
>             Fix For: 1.2.0
>
>
> TPC-DS query 37 (SF 1) fails with IndexOutOfBoundsException. This is a 
> regression:
> {code:sql}
> SELECT
>          i_item_id ,
>          i_item_desc ,
>          i_current_price
> FROM     item,
>          inventory,
>          date_dim,
>          catalog_sales
> WHERE    i_current_price BETWEEN 20 AND      20 + 30
> AND      inv_item_sk = i_item_sk
> AND      d_date_sk=inv_date_sk
> AND      d_date BETWEEN Cast('1999-03-06' AS DATE) AND      (
>                   Cast('1999-03-06' AS DATE) + INTERVAL '60' day)
> AND      i_manufact_id IN (843,815,850,840)
> AND      inv_quantity_on_hand BETWEEN 100 AND      500
> AND      cs_item_sk = i_item_sk
> GROUP BY i_item_id,
>          i_item_desc,
>          i_current_price
> ORDER BY i_item_id
> LIMIT 100;
> Text + Views:
> +------------+
> | i_item_id  |
> +------------+
> Query failed: SYSTEM ERROR: index: 1023, length: 1 (expected: range(0, 0))
> Fragment 6:1
> [615979d3-3615-4388-b259-5e0909243a2a on abhi6.qa.lab:31010]
> java.lang.RuntimeException: java.sql.SQLException: Failure while executing 
> query.
>       at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2514)
>       at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
>       at sqlline.SqlLine.print(SqlLine.java:1809)
>       at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
>       at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
>       at sqlline.SqlLine.dispatch(SqlLine.java:889)
>       at sqlline.SqlLine.begin(SqlLine.java:763)
>       at sqlline.SqlLine.start(SqlLine.java:498)
>       at sqlline.SqlLine.main(SqlLine.java:460)
> Parquet / Parquet + Views:
> Drill returns no results. This is a case of data incorrectness. 
> {code}



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

Reply via email to