drill-issues mailing list archives

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

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


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/ppcazureuser/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