Skip to content

Commit

Permalink
Merge pull request apache#6 from dataroaring/trino_test
Browse files Browse the repository at this point in the history
add some trino test
  • Loading branch information
dataroaring authored Mar 15, 2022
2 parents 5c28273 + f232a4b commit dafdf40
Show file tree
Hide file tree
Showing 75 changed files with 1,059 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !predicateNotProjected --
0
1
2

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !useRestrictiveLimitFromSubq --
2

5 changes: 5 additions & 0 deletions regression-test/data/limit/sql/withGroupBy.sql.generated.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withGroupBy --
5 4
5 3

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withGroupByAndOrderByInSubq --
5 0
5 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withGroupByInSubq --
20

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withJoinInSubq --
5

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withLimitZero --
0

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withSimpleLimit --
24
23
22
21
20

4 changes: 4 additions & 0 deletions regression-test/data/limit/sql/withSubq.sql.generated.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withSubq --
10

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !except_1 --
CHINA
VIETNAM
PERU

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !except_2 --
PERU
CHINA
VIETNAM

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !except_3 --
10
3
\N
6
1

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !intersect_1 --
JAPAN
INDONESIA
CHINA
INDIA
PERU
VIETNAM

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !intersect_2 --
7
9
4
\N
8
5
2

Binary file not shown.
25 changes: 25 additions & 0 deletions regression-test/data/window_functions/sf0.01/nation.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
0,ALGERIA,0, haggle. carefully final deposits detect slyly agai
1,ARGENTINA,1,al foxes promise slyly according to the regular accounts. bold requests alon
2,BRAZIL,1,y alongside of the pending deposits. carefully special packages are about the ironic forges. slyly special
3,CANADA,1,eas hang ironic silent packages. slyly regular packages are furiously over the tithes. fluffily bold
4,EGYPT,4,y above the carefully unusual theodolites. final dugouts are quickly across the furiously regular d
5,ETHIOPIA,0,ven packages wake quickly. regu
6,FRANCE,3,refully final requests. regular ironi
7,GERMANY,3,l platelets. regular accounts x-ray: unusual regular acco
8,INDIA,2,ss excuses cajole slyly across the packages. deposits print aroun
9,INDONESIA,2, slyly express asymptotes. regular deposits haggle slyly. carefully ironic hockey players sleep blithely. carefull
10,IRAN,4,efully alongside of the slyly final dependencies.
11,IRAQ,4,nic deposits boost atop the quickly final requests? quickly regula
12,JAPAN,2,ously. final express gifts cajole a
13,JORDAN,4,ic deposits are blithely about the carefully regular pa
14,KENYA,0, pending excuses haggle furiously deposits. pending express pinto beans wake fluffily past t
15,MOROCCO,0,rns. blithely bold courts among the closely regular packages use furiously bold platelets?
16,MOZAMBIQUE,0,s. ironic unusual asymptotes wake blithely r
17,PERU,1,platelets. blithely pending dependencies use fluffily across the even pinto beans. carefully silent accoun
18,CHINA,2,c dependencies. furiously express notornis sleep slyly regular accounts. ideas sleep. depos
19,ROMANIA,3,ular asymptotes are about the furious multipliers. express dependencies nag above the ironically ironic account
20,SAUDI ARABIA,4,ts. silent requests haggle. closely express packages sleep across the blithely
21,VIETNAM,2,hely enticingly express accounts. even final
22,RUSSIA,3, requests against the platelets use never according to the quickly regular pint
23,UNITED KINGDOM,3,eans boost carefully special requests. accounts are. carefull
24,UNITED STATES,1,y final packages. slow foxes cajole quickly. quickly silent platelets breach ironic accounts. unusual pinto be
5 changes: 5 additions & 0 deletions regression-test/data/window_functions/sf0.01/region.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0,AFRICA,lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are according to
1,AMERICA,hs use ironic even requests. s
2,ASIA,ges. thinly even pinto beans ca
3,EUROPE,ly final courts cajole furiously final excuse
4,MIDDLE EAST,uickly special accounts cajole carefully blithely close requests. carefully final asymptotes haggle furiousl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- ! leadLag --
20135|100|0.0|null|28134.48|null
52067|54|0.0|0.07|44546.26|28134.48
31911|100|0.02|0.07|3516.81|null
27014|27|0.02|0.09|10550.43|3516.81
10727|73|0.02|null|19928.59|10550.43
48032|27|0.02|0.03|22273.13|19928.59
49095|27|0.02|0.02|24617.67|22273.13
17092|54|0.02|0.02|33995.83|24617.67
21056|100|0.02|0.0|38684.91|33995.83
8673|54|0.02|0.1|57441.23|38684.91
58279|54|0.03|0.07|14067.24|null
44387|27|0.03|0.02|23445.4|14067.24
24643|54|0.03|0.02|35168.1|23445.4
47365|100|0.04|0.06|2344.54|null
1509|27|0.04|null|16411.78|2344.54
14918|27|0.04|0.04|38684.91|16411.78
30406|73|0.04|0.09|45718.53|38684.91
12901|27|0.04|0.04|53924.42|45718.53
27394|54|0.05|0.03|22273.13|null
33600|100|0.05|0.02|37512.64|22273.13
37063|100|0.06|0.05|14067.24|null
37186|54|0.07|0.05|5861.35|null
52258|54|0.07|0.0|19928.59|5861.35
21314|27|0.07|0.04|28134.48|19928.59
56898|27|0.07|0.08|41029.45|28134.48
37185|73|0.07|0.04|42201.72|41029.45
50304|100|0.07|0.04|56268.96|42201.72
30822|100|0.07|0.02|58613.5|56268.96
52736|27|0.08|0.02|15239.51|null
21346|27|0.09|0.07|4689.08|null
28326|73|0.09|0.02|42201.72|4689.08
1985|54|0.1|null|38684.91|null
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !noOrderAllRowsPeers_order --
27014|27|0.02|1
12901|27|0.04|1
14918|27|0.04|1
21314|27|0.07|1
48032|27|0.02|1
49095|27|0.02|1
56898|27|0.07|1
44387|27|0.03|1
1509|27|0.04|1
21346|27|0.09|1
52736|27|0.08|1
58279|54|0.03|1
24643|54|0.03|1
27394|54|0.05|1
37186|54|0.07|1
1985|54|0.1|1
8673|54|0.02|1
17092|54|0.02|1
52067|54|0.0|1
52258|54|0.07|1
30406|73|0.04|1
37185|73|0.07|1
10727|73|0.02|1
28326|73|0.09|1
20135|100|0.0|1
21056|100|0.02|1
47365|100|0.04|1
37063|100|0.06|1
33600|100|0.05|1
31911|100|0.02|1
30822|100|0.07|1
50304|100|0.07|1

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !rangeCurrent --
0 0
14 0
15 0
16 0
5 0
1 1
3 1
17 1
2 1
24 1
9 9
18 9
21 9
12 9
8 8
22 22
23 22
7 7
6 6
19 6
10 10
13 10
11 10
20 10
4 4

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !rangeUnbounded --
0 0
14 0
15 0
16 0
5 0
1 1
3 1
17 1
2 1
24 1
9 8
18 8
21 8
12 8
8 8
22 6
23 6
7 6
6 6
19 6
10 4
13 4
11 4
20 4
4 4

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-- ! rowsDifferentOrders --
1509|27|16411.78|279000.26|0.04|0.04
12901|27|53924.42|262588.48|0.04|0.04
14918|27|38684.91|208664.06|0.04|0.04
21314|27|28134.48|169979.15|0.07|0.0475
21346|27|4689.08|141844.67|0.09|0.056
27014|27|10550.43|137155.59|0.02|0.05
44387|27|23445.4|126605.16|0.03|0.04714
48032|27|22273.13|103159.76|0.02|0.04375
49095|27|24617.67|80886.63|0.02|0.04111
52736|27|15239.51|56268.96|0.08|0.045
56898|27|41029.45|41029.45|0.07|0.04727
1985|54|38684.91|271966.64|0.1|0.1
8673|54|57441.23|233281.73|0.02|0.06
17092|54|33995.83|175840.5|0.02|0.04667
24643|54|35168.1|141844.67|0.03|0.0425
27394|54|22273.13|106676.57|0.05|0.044
37186|54|5861.35|84403.44|0.07|0.04833
52067|54|44546.26|78542.09|0.0|0.04143
52258|54|19928.59|33995.83|0.07|0.045
58279|54|14067.24|14067.24|0.03|0.04333
10727|73|19928.59|150050.56|0.02|0.02
28326|73|42201.72|130121.97|0.09|0.055
30406|73|45718.53|87920.25|0.04|0.05
37185|73|42201.72|42201.72|0.07|0.055
20135|100|28134.48|239143.08|0.0|0.0
21056|100|38684.91|211008.6|0.02|0.01
30822|100|58613.5|172323.69|0.07|0.03
31911|100|3516.81|113710.19|0.02|0.0275
33600|100|37512.64|110193.38|0.05|0.032
37063|100|14067.24|72680.74|0.06|0.03667
47365|100|2344.54|58613.5|0.04|0.03714
50304|100|56268.96|56268.96|0.07|0.04125

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- ! rowsDisjointWindows --
1509|27|14.0|null|16411.78|70336.2|0.04|0.05
12901|27|46.0|14.0|53924.42|92609.33|0.04|0.04714
14918|27|33.0|60.0|38684.91|66819.39|0.04|0.04
21314|27|24.0|93.0|28134.48|32823.56|0.07|0.044
21346|27|4.00|117.0|4689.08|15239.51|0.09|0.0475
27014|27|9.0|121.0|10550.43|33995.83|0.02|0.05667
44387|27|20.0|130.0|23445.4|45718.53|0.03|0.075
48032|27|19.0|150.0|22273.13|46890.8|0.02|0.07
49095|27|21.0|169.0|24617.67|39857.18|0.02|null
52736|27|13.0|190.0|15239.51|56268.96|0.08|null
56898|27|35.0|203.0|41029.45|41029.45|0.07|null
1985|54|33.0|null|38684.91|96126.14|0.1|0.04167
8673|54|49.0|33.0|57441.23|91437.06|0.02|0.044
17092|54|29.0|82.0|33995.83|69163.93|0.02|0.0425
24643|54|30.0|111.0|35168.1|57441.23|0.03|0.03333
27394|54|19.0|141.0|22273.13|28134.48|0.05|0.05
37186|54|5.0|160.0|5861.35|50407.61|0.07|0.03
52067|54|38.0|165.0|44546.26|64474.85|0.0|null
52258|54|17.0|203.0|19928.59|33995.83|0.07|null
58279|54|12.0|220.0|14067.24|14067.24|0.03|null
10727|73|17.0|null|19928.59|62130.31|0.02|0.07
28326|73|36.0|17.0|42201.72|87920.25|0.09|null
30406|73|39.0|53.0|45718.53|87920.25|0.04|null
37185|73|36.0|92.0|42201.72|42201.72|0.07|null
20135|100|24.0|null|28134.48|66819.39|0.0|0.048
21056|100|33.0|24.0|38684.91|97298.41|0.02|0.055
30822|100|50.0|57.0|58613.5|62130.31|0.07|0.05667
31911|100|3.0|107.0|3516.81|41029.45|0.02|0.055
33600|100|32.0|110.0|37512.64|51579.88|0.05|0.07
37063|100|12.0|142.0|14067.24|16411.78|0.06|null
47365|100|2.0|154.0|2344.54|58613.5|0.04|null
50304|100|48.0|156.0|56268.96|56268.96|0.07|null
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- ! rowsFirstLast --
12901|27|53924.42|53924.42|4689.08
56898|27|41029.45|53924.42|4689.08
14918|27|38684.91|53924.42|4689.08
21314|27|28134.48|53924.42|4689.08
49095|27|24617.67|53924.42|4689.08
44387|27|23445.4|53924.42|4689.08
48032|27|22273.13|53924.42|4689.08
1509|27|16411.78|53924.42|4689.08
52736|27|15239.51|53924.42|4689.08
27014|27|10550.43|53924.42|4689.08
21346|27|4689.08|53924.42|4689.08
8673|54|57441.23|57441.23|5861.35
52067|54|44546.26|57441.23|5861.35
1985|54|38684.91|57441.23|5861.35
24643|54|35168.1|57441.23|5861.35
17092|54|33995.83|57441.23|5861.35
27394|54|22273.13|57441.23|5861.35
52258|54|19928.59|57441.23|5861.35
58279|54|14067.24|57441.23|5861.35
37186|54|5861.35|57441.23|5861.35
30406|73|45718.53|45718.53|19928.59
37185|73|42201.72|45718.53|19928.59
28326|73|42201.72|45718.53|19928.59
10727|73|19928.59|45718.53|19928.59
30822|100|58613.5|58613.5|2344.54
50304|100|56268.96|58613.5|2344.54
21056|100|38684.91|58613.5|2344.54
33600|100|37512.64|58613.5|2344.54
20135|100|28134.48|58613.5|2344.54
37063|100|14067.24|58613.5|2344.54
31911|100|3516.81|58613.5|2344.54
47365|100|2344.54|58613.5|2344.54
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- ! rowsFrame2F3F --
1509|27|14.0|57.0
12901|27|46.0|28.0
14918|27|33.0|13.0
21314|27|24.0|29.0
21346|27|4.0|39.0
27014|27|9.0|40.0
44387|27|20.0|34.0
48032|27|19.0|48.0
49095|27|21.0|35.0
52736|27|13.0|null
56898|27|35.0|null
1985|54|33.0|59.0
8673|54|49.0|49.0
17092|54|29.0|24.0
24643|54|30.0|43.0
27394|54|19.0|55.0
37186|54|5.0|29.0
52067|54|38.0|12.0
52258|54|17.0|null
58279|54|12.0|null
10727|73|17.0|75.0
28326|73|36.0|36.0
30406|73|39.0|null
37185|73|36.0|null
20135|100|24.0|53.0
21056|100|33.0|35.0
30822|100|50.0|44.0
31911|100|3.0|14.0
33600|100|32.0|50.0
37063|100|12.0|48.0
47365|100|2.0|null
50304|100|48.0|null
Loading

0 comments on commit dafdf40

Please sign in to comment.