drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandru (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1851) Need some samples for RANK(), ROW_NUMBER(), SubQuery in SELECTStatement - Apache Drill
Date Fri, 12 Dec 2014 10:44:13 GMT

     [ https://issues.apache.org/jira/browse/DRILL-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chandru updated DRILL-1851:
---------------------------
    Labels:   (was: features)

> 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: Bug
>          Components: Functions - Drill
>    Affects Versions: 0.6.0
>         Environment: Drill SQL
>            Reporter: Chandru
>            Priority: Minor
>   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