-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct quotation in drill query files (#15044)
- Loading branch information
Showing
108 changed files
with
108 additions
and
108 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/aggOWnFn_3.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT * FROM (SELECT c1, c2, LEAD(c2) OVER ( PARTITION BY c2 ORDER BY c1) LEAD_c2, NTILE(3) OVER ( PARTITION BY c2 ORDER BY c1) tile FROM "tblWnulls.parquet") sub_query WHERE LEAD_c2 ="e" ORDER BY tile, c1 | ||
SELECT * FROM (SELECT c1, c2, LEAD(c2) OVER ( PARTITION BY c2 ORDER BY c1) LEAD_c2, NTILE(3) OVER ( PARTITION BY c2 ORDER BY c1) tile FROM "tblWnulls.parquet") sub_query WHERE LEAD_c2 ='e' ORDER BY tile, c1 |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/aggOWnFn_4.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT * FROM (SELECT c1, c2, lag(c2) OVER ( PARTITION BY c2 ORDER BY c1) lag_c2, NTILE(3) OVER ( PARTITION BY c2 ORDER BY c1) tile FROM "tblWnulls.parquet") sub_query WHERE lag_c2 = "e" ORDER BY tile, c1 | ||
SELECT * FROM (SELECT c1, c2, lag(c2) OVER ( PARTITION BY c2 ORDER BY c1) lag_c2, NTILE(3) OVER ( PARTITION BY c2 ORDER BY c1) tile FROM "tblWnulls.parquet") sub_query WHERE lag_c2 = 'e' ORDER BY tile, c1 |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wPrtnOrdrBy_1.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col_vchar_52, col_int, RANK () OVER (PARTITION BY col_vchar_52 order by col_int) rnk FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT col_vchar_52, col_int, RANK () OVER (PARTITION BY col_vchar_52 order by col_int) rnk FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wPrtnOrdrBy_10.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col_vchar_52, col_int, CUME_DIST () OVER (PARTITION BY col_vchar_52 order by col_int) cumeDist FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT col_vchar_52, col_int, CUME_DIST () OVER (PARTITION BY col_vchar_52 order by col_int) cumeDist FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wPrtnOrdrBy_4.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col_vchar_52, col_int, ROW_NUMBER () OVER (PARTITION BY col_vchar_52 order by col_int) row_numbr FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT col_vchar_52, col_int, ROW_NUMBER () OVER (PARTITION BY col_vchar_52 order by col_int) row_numbr FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wPrtnOrdrBy_6.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col_vchar_52, col_int, DENSE_RANK () OVER (PARTITION BY col_vchar_52 order by col_int) dense_rnk FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT col_vchar_52, col_int, DENSE_RANK () OVER (PARTITION BY col_vchar_52 order by col_int) dense_rnk FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wPrtnOrdrBy_8.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col_vchar_52, col_int, PERCENT_RANK () OVER (PARTITION BY col_vchar_52 order by col_int) prcnt_rank FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT col_vchar_52, col_int, PERCENT_RANK () OVER (PARTITION BY col_vchar_52 order by col_int) prcnt_rank FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/winFnQry_76.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
select c1, c2, count ( c1 ) over ( partition by c2 order by c1 asc nulls first ) w_count from "tblWnulls.parquet" where c2 not in ("a","b","c") | ||
select c1, c2, count ( c1 ) over ( partition by c2 order by c1 asc nulls first ) w_count from "tblWnulls.parquet" where c2 not in ('a','b','c') |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/winFnQry_77.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
select c1, c2, count ( c1 ) over ( partition by c2 order by c1 asc nulls first ) w_count from "tblWnulls.parquet" where c2 in ("a","b","c") | ||
select c1, c2, count ( c1 ) over ( partition by c2 order by c1 asc nulls first ) w_count from "tblWnulls.parquet" where c2 in ('a','b','c') |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_1.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MAX(col_int) OVER(PARTITION BY col_vchar_52) max_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT MAX(col_int) OVER(PARTITION BY col_vchar_52) max_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_10.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_char_2) count_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_char_2) count_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_11.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT AVG(col_int) OVER (PARTITION BY col_char_2) avg_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT AVG(col_int) OVER (PARTITION BY col_char_2) avg_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_12.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MAX(col_int) OVER (PARTITION BY col_tmstmp) max_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ" | ||
SELECT MAX(col_int) OVER (PARTITION BY col_tmstmp) max_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_13.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MIN(col_int) OVER (PARTITION BY col_tmstmp) min_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ" | ||
SELECT MIN(col_int) OVER (PARTITION BY col_tmstmp) min_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_14.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT SUM(col_int) OVER (PARTITION BY col_tmstmp) sum_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ" | ||
SELECT SUM(col_int) OVER (PARTITION BY col_tmstmp) sum_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_15.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_tmstmp) count_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ" | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_tmstmp) count_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_16.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT AVG(col_int) OVER (PARTITION BY col_tmstmp) avg_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ" | ||
SELECT AVG(col_int) OVER (PARTITION BY col_tmstmp) avg_int, col_tmstmp, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'HXXXXXXXXXXXXXXXXXXXXXXXXXIXXXXXXXXXXXXXXXXXXXXXXXXJ' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_17.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MAX(col_int) OVER (PARTITION BY col_tm) max_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT MAX(col_int) OVER (PARTITION BY col_tm) max_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_18.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MIN(col_int) OVER (PARTITION BY col_tm) min_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT MIN(col_int) OVER (PARTITION BY col_tm) min_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_19.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT SUM(col_int) OVER (PARTITION BY col_tm) sum_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT SUM(col_int) OVER (PARTITION BY col_tm) sum_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_2.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MAX(col_int) OVER (PARTITION BY col_vchar_52) max_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT MAX(col_int) OVER (PARTITION BY col_vchar_52) max_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_20.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_tm) count_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_tm) count_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_21.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT AVG(col_int) OVER (PARTITION BY col_tm) avg_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT AVG(col_int) OVER (PARTITION BY col_tm) avg_int, col_tm, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_22.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MAX(col_int) OVER (PARTITION BY col_dt) max_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT MAX(col_int) OVER (PARTITION BY col_dt) max_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_23.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MIN(col_int) OVER (PARTITION BY col_dt) min_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT MIN(col_int) OVER (PARTITION BY col_dt) min_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_24.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT SUM(col_int) OVER (PARTITION BY col_dt) sum_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT SUM(col_int) OVER (PARTITION BY col_dt) sum_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_25.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_dt) count_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_dt) count_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_26.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT AVG(col_int) OVER (PARTITION BY col_dt) avg_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB" | ||
SELECT AVG(col_int) OVER (PARTITION BY col_dt) avg_int, col_dt, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'AXXXXXXXXXXXXXXXXXXXXXXXXXCXXXXXXXXXXXXXXXXXXXXXXXXB' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_3.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MIN(col_int) OVER (PARTITION BY col_vchar_52) min_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT MIN(col_int) OVER (PARTITION BY col_vchar_52) min_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_4.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT SUM(col_int) OVER (PARTITION BY col_vchar_52) sum_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT SUM(col_int) OVER (PARTITION BY col_vchar_52) sum_int, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_5.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_vchar_52)count_int ,col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT COUNT(col_int) OVER (PARTITION BY col_vchar_52)count_int ,col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_6.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT AVG(col_int) OVER (PARTITION BY col_vchar_52) count_avg, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF" | ||
SELECT AVG(col_int) OVER (PARTITION BY col_vchar_52) count_avg, col_vchar_52, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'DXXXXXXXXXXXXXXXXXXXXXXXXXEXXXXXXXXXXXXXXXXXXXXXXXXF' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_7.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MAX(col_int) OVER (PARTITION BY col_char_2) max_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT MAX(col_int) OVER (PARTITION BY col_char_2) max_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_8.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT MIN(col_int) OVER (PARTITION BY col_char_2) min_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT MIN(col_int) OVER (PARTITION BY col_char_2) min_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/aggregates/wo_OrdrBy_9.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT SUM(col_int) OVER (PARTITION BY col_char_2) sum_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = "GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI" | ||
SELECT SUM(col_int) OVER (PARTITION BY col_char_2) sum_int, col_char_2, col_int FROM "smlTbl.parquet" WHERE col_vchar_52 = 'GXXXXXXXXXXXXXXXXXXXXXXXXXHXXXXXXXXXXXXXXXXXXXXXXXXI' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_18.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col7 , col4, FIRST_VALUE(col4) OVER(PARTITION BY col7 ORDER BY col4) FIRST_VALUE_col4 FROM "allTypsUniq.parquet" WHERE col4 IN ("20:20:20.300" , "19:24:45.200" , "23:45:35.120" , "23:23:30.222" , "16:35:45.100" , "10:59:58.119" , "15:20:30.230") | ||
SELECT col7 , col4, FIRST_VALUE(col4) OVER(PARTITION BY col7 ORDER BY col4) FIRST_VALUE_col4 FROM "allTypsUniq.parquet" WHERE col4 IN ('20:20:20.300' , '19:24:45.200' , '23:45:35.120' , '23:23:30.222' , '16:35:45.100' , '10:59:58.119' , '15:20:30.230') |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_19.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col7 , col4, FIRST_VALUE(col4) OVER(PARTITION BY col7 ORDER BY col4) FIRST_VALUE_col4 FROM "allTypsUniq.parquet" WHERE col4 NOT IN ("20:20:20.300" , "19:24:45.200" , "23:45:35.120" , "23:23:30.222" , "16:35:45.100" , "10:59:58.119" , "15:20:30.230") | ||
SELECT col7 , col4, FIRST_VALUE(col4) OVER(PARTITION BY col7 ORDER BY col4) FIRST_VALUE_col4 FROM "allTypsUniq.parquet" WHERE col4 NOT IN ('20:20:20.300' , '19:24:45.200' , '23:45:35.120' , '23:23:30.222' , '16:35:45.100' , '10:59:58.119' , '15:20:30.230') |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_21.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col7 , col5, FIRST_VALUE(col5) OVER(PARTITION BY col7 ORDER BY col5) FIRST_VALUE_col5 FROM "allTypsUniq.parquet" WHERE col5 >= "1947-07-02 00:28:02.418" AND col5 < "2011-06-02 00:28:02.218" | ||
SELECT col7 , col5, FIRST_VALUE(col5) OVER(PARTITION BY col7 ORDER BY col5) FIRST_VALUE_col5 FROM "allTypsUniq.parquet" WHERE col5 >= '1947-07-02 00:28:02.418' AND col5 < '2011-06-02 00:28:02.218' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_22.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col7 , col5, FIRST_VALUE(col5) OVER(PARTITION BY col7 ORDER BY col5) FIRST_VALUE_col5 FROM "allTypsUniq.parquet" WHERE col5 IN ( "1947-07-02 00:28:02.418" , "2011-06-02 00:28:02.218" , "1950-08-02 00:28:02.111" , "2012-06-02 00:28:02.418" , "1985-04-02 00:28:02.638") | ||
SELECT col7 , col5, FIRST_VALUE(col5) OVER(PARTITION BY col7 ORDER BY col5) FIRST_VALUE_col5 FROM "allTypsUniq.parquet" WHERE col5 IN ( '1947-07-02 00:28:02.418' , '2011-06-02 00:28:02.218' , '1950-08-02 00:28:02.111' , '2012-06-02 00:28:02.418' , '1985-04-02 00:28:02.638') |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_24.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col7 , col6, FIRST_VALUE(col6) OVER(PARTITION BY col7 ORDER BY col6) FIRST_VALUE_col6 FROM "allTypsUniq.parquet" WHERE col6 > "1947-05-12" AND col6 < "2007-10-01" | ||
SELECT col7 , col6, FIRST_VALUE(col6) OVER(PARTITION BY col7 ORDER BY col6) FIRST_VALUE_col6 FROM "allTypsUniq.parquet" WHERE col6 > '1947-05-12' AND col6 < '2007-10-01' |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_25.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT col7 , col6 , FIRST_VALUE(col6) OVER(PARTITION BY col7 ORDER BY col6) FIRST_VALUE_col6 FROM "allTypsUniq.parquet" WHERE col6 IN ("1952-08-14" , "1981-03-14" , "1947-05-12" , "1995-10-09" , "1968-02-03" , "1943-02-02" , "1957-12-10" , "2015-01-01" , "2013-01-03" , "1989-02-02" , "2007-10-01" , "1999-01-03" ) | ||
SELECT col7 , col6 , FIRST_VALUE(col6) OVER(PARTITION BY col7 ORDER BY col6) FIRST_VALUE_col6 FROM "allTypsUniq.parquet" WHERE col6 IN ('1952-08-14' , '1981-03-14' , '1947-05-12' , '1995-10-09' , '1968-02-03' , '1943-02-02' , '1957-12-10' , '2015-01-01' , '2013-01-03' , '1989-02-02' , '2007-10-01' , '1999-01-03' ) |
2 changes: 1 addition & 1 deletion
2
sql/src/test/resources/drill/window/queries/first_val/firstValFn_32.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SELECT * FROM (SELECT c1, c2, lead(c2) OVER ( PARTITION BY c2 ORDER BY c1) lead_c2, lag(c2) OVER ( PARTITION BY c2 ORDER BY c1) lag_c2, ntile(3) OVER ( PARTITION BY c2 ORDER BY c1) tile, first_value(c2) OVER ( PARTITION BY c2 ORDER BY c1) firstVal_c2, last_value(c2) OVER ( PARTITION BY c2 ORDER BY c1) lastVal_c2 FROM "tblWnulls.parquet") sub_query where firstVal_c2 = "e" ORDER BY tile, c1 | ||
SELECT * FROM (SELECT c1, c2, lead(c2) OVER ( PARTITION BY c2 ORDER BY c1) lead_c2, lag(c2) OVER ( PARTITION BY c2 ORDER BY c1) lag_c2, ntile(3) OVER ( PARTITION BY c2 ORDER BY c1) tile, first_value(c2) OVER ( PARTITION BY c2 ORDER BY c1) firstVal_c2, last_value(c2) OVER ( PARTITION BY c2 ORDER BY c1) lastVal_c2 FROM "tblWnulls.parquet") sub_query where firstVal_c2 = 'e' ORDER BY tile, c1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.