drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Barber (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1851) Need some samples for RANK(), ROW_NUMBER(), SubQuery in SELECTStatement - Apache Drill
Date Wed, 28 Oct 2015 11:42:27 GMT

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

Tom Barber commented on DRILL-1851:
-----------------------------------

Hello folks, ROW_NUMBER works for me in 1.2 so I don't know how much of this ticket remains
open:

select ROW_NUMBER() OVER (ORDER BY columns[0]), columns[0] from dfs.`/home/bugg/tmp/hads/`
limit 10;

Just thought I'd let those watching know!

Tom

> Need some samples for RANK(), ROW_NUMBER(), SubQuery in SELECTStatement - Apache Drill
> --------------------------------------------------------------------------------------
>
>                 Key: DRILL-1851
>                 URL: https://issues.apache.org/jira/browse/DRILL-1851
>             Project: Apache Drill
>          Issue Type: New Feature
>          Components: Functions - Drill
>    Affects Versions: 0.6.0
>         Environment: Drill SQL
>            Reporter: Chandru
>            Priority: Critical
>             Fix For: Future
>
>         Attachments: Issue_Hugefiles-Drill.jpg
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Provide some sample queries for the below scenarios,
> 1.RANK( ) function
> rank() over (ORDER BY columns[0] DESC)  as rowcount
> 2. ROW_NUMBER( ) function
> row_number() over (PARTITION BY  columns[0] ORDER BY columns[1] DESC) as rowcount
> 3. SubQuery in Select Statement.
> SELECT paccnt.R_NAME, 
> CAST((SELECT N_NATIONKEY FROM dfs.`/home/user/drill/drill-0.6.0/sample-data/nation.parquet`)
AS CHAR) AS NUMB
> from dfs.`/home/user/drill/drill-0.6.0/sample-data/region.parquet` as paccnt;



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

Mime
View raw message