drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramana Inukonda Nagaraj (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-3633) FIRST_VALUE , LAST_VALUE functions take too long to complete
Date Wed, 12 Aug 2015 21:02:45 GMT

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

Ramana Inukonda Nagaraj commented on DRILL-3633:
------------------------------------------------

[~khfaraaz] That is a different query altogether. The plan for that should be quite different
I would presume.

One way to measure time would be to measure the time using a  simple jdbc program. In that
way we do not measure the time printing to screen.

> FIRST_VALUE , LAST_VALUE functions take too long to complete
> ------------------------------------------------------------
>
>                 Key: DRILL-3633
>                 URL: https://issues.apache.org/jira/browse/DRILL-3633
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 1.2.0
>         Environment: private-branch https://github.com/adeneche/incubator-drill/tree/new-window-funcs
>            Reporter: Khurram Faraaz
>            Assignee: Deneche A. Hakim
>              Labels: window_funcion
>
> Query that uses FIRST_VALUE function takes twelve minutes to complete on developers private
branch.
> {code}
> select first_value(key1) over(partition by key2 order by key1) firstValue from `twoKeyJsn.json`;

> ...
> 26,212,355 rows selected (720.229 seconds)
> 0: jdbc:drill:schema=dfs.tmp> 
> {code}
> {code}
> select last_value(key1) over(partition by key2 order by key1) firstValue from `twoKeyJsn.json`;

> ...
> +------------------+
> 26,212,355 rows selected (239.109 seconds)
> {code}
> number of rows in the JSON file
> {code}
> 0: jdbc:drill:schema=dfs.tmp> select count(*) from `twoKeyJsn.json`;
> +-----------+
> |  EXPR$0   |
> +-----------+
> | 26212355  |
> +-----------+
> 1 row selected (13.949 seconds)
> {code}



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

Mime
View raw message