[fix](regression) rowsDisjointWindows output is not ordered #13333

This commit is contained in:
minghong
2022-10-13 09:05:07 +08:00
committed by GitHub
parent a77808e103
commit 0732ccbf0f
2 changed files with 21 additions and 20 deletions

View File

@ -1,35 +1,35 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !rowsDisjointWindows --
1509 27 14.0 \N 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.0 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 \N
52736 27 13.0 190.0 15239.51 56268.96 0.08 \N
56898 27 35.0 203.0 41029.45 41029.45 0.07 \N
1985 54 33.0 \N 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 \N
52258 54 17.0 203.0 19928.59 33995.83 0.07 \N
58279 54 12.0 220.0 14067.24 14067.24 0.03 \N
10727 73 17.0 \N 19928.59 62130.31 0.02 0.07
28326 73 36.0 17.0 42201.72 87920.25 0.09 \N
30406 73 39.0 53.0 45718.53 87920.25 0.04 \N
37185 73 36.0 92.0 42201.72 42201.72 0.07 \N
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
17092 54 29.0 82.0 33995.83 69163.93 0.02 0.0425
20135 100 24.0 \N 28134.48 66819.39 0.0 0.048
21056 100 33.0 24.0 38684.91 97298.41 0.02 0.055
21314 27 24.0 93.0 28134.48 32823.56 0.07 0.044
21346 27 4.0 117.0 4689.08 15239.51 0.09 0.0475
24643 54 30.0 111.0 35168.1 57441.23 0.03 0.03333
27014 27 9.0 121.0 10550.43 33995.83 0.02 0.05667
27394 54 19.0 141.0 22273.13 28134.48 0.05 0.05
28326 73 36.0 17.0 42201.72 87920.25 0.09 \N
30406 73 39.0 53.0 45718.53 87920.25 0.04 \N
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 \N
37185 73 36.0 92.0 42201.72 42201.72 0.07 \N
37186 54 5.0 160.0 5861.35 50407.61 0.07 0.03
44387 27 20.0 130.0 23445.4 45718.53 0.03 0.075
47365 100 2.0 154.0 2344.54 58613.5 0.04 \N
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 \N
50304 100 48.0 156.0 56268.96 56268.96 0.07 \N
52067 54 38.0 165.0 44546.26 64474.85 0.0 \N
52258 54 17.0 203.0 19928.59 33995.83 0.07 \N
52736 27 13.0 190.0 15239.51 56268.96 0.08 \N
56898 27 35.0 203.0 41029.45 41029.45 0.07 \N
58279 54 12.0 220.0 14067.24 14067.24 0.03 \N

View File

@ -7,3 +7,4 @@ total_extendedprice,
discount,
round(avg(discount) over (partition by suppkey order by orderkey rows between 3 following and unbounded following), 5) avg_discount
from tpch_tiny_lineitem where partkey = 272
order by orderkey, suppkey