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

Khurram Faraaz commented on DRILL-3679:
---------------------------------------

I see this JIRA is marked as resolved, but the issue still exists on master, 
see commit id below. I have verified fix for DRILL-3680 which is now Fixed on 
master, on the same commit id as this one.

{code}
0: jdbc:drill:schema=dfs.tmp> select * from sys.version;
+-------------------------------------------+-----------------------------------------------------------------+----------------------------+--------------+----------------------------+
|                 commit_id                 |                         
commit_message                          |        commit_time         | 
build_email  |         build_time         |
+-------------------------------------------+-----------------------------------------------------------------+----------------------------+--------------+----------------------------+
| b525692e05c2a562a664093abd46bf68137b4a3b  | DRILL-3280, DRILL-3360, 
DRILL-3601, DRILL-3649: Add test cases  | 11.09.2015 @ 00:52:25 UTC  | Unknown  
    | 11.09.2015 @ 05:43:11 UTC  |
+-------------------------------------------+-----------------------------------------------------------------+----------------------------+--------------+----------------------------+
1 row selected (0.209 seconds)
0: jdbc:drill:schema=dfs.tmp> select rnum, position_id, ntile(4) over(order by 
position_id) from (select position_id, row_number() over(order by position_id) 
as rnum from cp.`employee.json`);
java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR: 
IndexOutOfBoundsException: index: 0, length: 4 (expected: range(0, 0))

Fragment 0:0

[Error Id: 42b5d107-a3c8-477d-943d-40469f6cbd17 on centos-04.qa.lab:31010]
        at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73)
        at 
sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87)
        at sqlline.TableOutputFormat.print(TableOutputFormat.java:118)
        at sqlline.SqlLine.print(SqlLine.java:1583)
        at sqlline.Commands.execute(Commands.java:852)
        at sqlline.Commands.sql(Commands.java:751)
        at sqlline.SqlLine.dispatch(SqlLine.java:738)
        at sqlline.SqlLine.begin(SqlLine.java:612)
        at sqlline.SqlLine.start(SqlLine.java:366)
        at sqlline.SqlLine.main(SqlLine.java:259)
0: jdbc:drill:schema=dfs.tmp> 
{code}

> IOB Exception : when window functions used in outer and inner query
> -------------------------------------------------------------------
>
>                 Key: DRILL-3679
>                 URL: https://issues.apache.org/jira/browse/DRILL-3679
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.2.0
>         Environment: private-branch 
> https://github.com/adeneche/incubator-drill/tree/new-window-funcs
>            Reporter: Khurram Faraaz
>            Assignee: Jinfeng Ni
>              Labels: window_function
>             Fix For: 1.2.0
>
>
> IOB Exception seen when two different window functions are used in inner and 
> outer queries.
> {code}
> 0: jdbc:drill:schema=dfs.tmp> select rnum, position_id, ntile(4) over(order 
> by position_id) from (select position_id, row_number() over(order by 
> position_id) as rnum from cp.`employee.json`);
> java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR: 
> IndexOutOfBoundsException: index: 0, length: 4 (expected: range(0, 0))
> Fragment 0:0
> [Error Id: 8e0cbf82-842d-4fa7-ab0d-1d982a3d6c24 on centos-03.qa.lab:31010]
>       at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73)
>       at 
> sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87)
>       at sqlline.TableOutputFormat.print(TableOutputFormat.java:118)
>       at sqlline.SqlLine.print(SqlLine.java:1583)
>       at sqlline.Commands.execute(Commands.java:852)
>       at sqlline.Commands.sql(Commands.java:751)
>       at sqlline.SqlLine.dispatch(SqlLine.java:738)
>       at sqlline.SqlLine.begin(SqlLine.java:612)
>       at sqlline.SqlLine.start(SqlLine.java:366)
>       at sqlline.SqlLine.main(SqlLine.java:259)
> {code}



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

Reply via email to