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 2014/12/30 12:24:14 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14261020#comment-14261020 ]
Chandru commented on DRILL-1851:
--------------------------------
@Jacques - ROW_NUMBER() function is available in drill SQL? if so, please share the sample with partition by clause.
> 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
> Fix For: Future
>
> 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)