You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Chandru (JIRA)" <ji...@apache.org> on 2015/01/12 08:00:44 UTC
[jira] [Updated] (DRILL-1851) Need some samples for RANK(),
ROW_NUMBER(), SubQuery in SELECTStatement - Apache Drill
[ https://issues.apache.org/jira/browse/DRILL-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chandru updated DRILL-1851:
---------------------------
Attachment: Issue_Hugefiles-Drill.jpg
> 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)