You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- query: select min(col3) from T2 group by col1, col2;
162
-
- supported_version: !current_version
162
+
- supported_version: 4.1.9.0
163
163
- explain: "ISCAN(MV2 <,>) | MAP (_ AS _0) | AGG (min_l(_._0.COL3) AS _0) GROUP BY (_._0.COL1 AS _0, _._0.COL2 AS _1) | MAP (_._1._0 AS _0)"
164
164
- result: [{!l 1}, {!l 2}, {!l 3}]
165
165
-
166
166
- query: select min(col3) from T2 group by col1, col2;
167
167
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
168
168
# (Extra values being produced after exhausting source of an aggregate cursor)
169
-
# Can remove once we do not care about backwards compatibility before !current_version
169
+
# Can remove once we do not care about backwards compatibility before 4.1.9.0
170
170
- maxRows: 1
171
-
- initialVersionLessThan: !current_version
171
+
- initialVersionLessThan: 4.1.9.0
172
172
# Different (incorrect) behavior for different past versions
173
-
- initialVersionAtLeast: !current_version
173
+
- initialVersionAtLeast: 4.1.9.0
174
174
- result: [{!l 1}]
175
175
- result: [{!l 2}]
176
176
- result: [{!l 3}]
@@ -179,21 +179,21 @@ test_block:
179
179
# this should use the aggregate index in the future, for now, it is using streaming aggregate
180
180
# over base table scan.
181
181
- query: select max(col2) from t2;
182
-
- supported_version: !current_version
182
+
- supported_version: 4.1.9.0
183
183
- explain: "ISCAN(MV3 <,>) | MAP (_ AS _0) | AGG (max_l(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
184
184
- result: [{!l 2}]
185
185
-
186
186
- query: select max(col2) from t2;
187
187
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
188
188
# (Extra values being produced after exhausting source of an aggregate cursor)
189
-
# Can remove once we do not care about backwards compatibility before !current_version
190
-
- supported_version: !current_version
189
+
# Can remove once we do not care about backwards compatibility before 4.1.9.0
190
+
- supported_version: 4.1.9.0
191
191
- maxRows: 1
192
-
- initialVersionLessThan: !current_version
192
+
- initialVersionLessThan: 4.1.9.0
193
193
- result: [{!l 2}]
194
194
- result: [{!null _}]
195
195
- result: [{!l 2}] # ad infinitum
196
-
- initialVersionAtLeast: !current_version
196
+
- initialVersionAtLeast: 4.1.9.0
197
197
- result: [{!l 2}]
198
198
- result: []
199
199
-
@@ -249,26 +249,26 @@ test_block:
249
249
-
250
250
# Permuted max index can also be used to evaluate other aggregate functions via aggregation and roll-up
251
251
- query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 asc;
252
-
- supported_version: !current_version
252
+
- supported_version: 4.1.9.0
253
253
- explain: "ISCAN(MV9 [EQUALS promote(@c20 AS LONG)]) | MAP (_ AS _0) | AGG (sum_l(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0, _._0.COL3 AS _1) | MAP (_._0._1 AS COL3, _._1._0 AS S)"
- query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 desc;
264
-
- supported_version: !current_version
264
+
- supported_version: 4.1.9.0
265
265
- explain: "ISCAN(MV9 [EQUALS promote(@c20 AS LONG)] REVERSE) | MAP (_ AS _0) | AGG (sum_l(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0, _._0.COL3 AS _1) | MAP (_._0._1 AS COL3, _._1._0 AS S)"
- query: SELECT bitmap_construct_agg(bitmap_bit_position(id)) as bitmap, bitmap_bucket_offset(id) as offset FROM T2 GROUP BY bitmap_bucket_offset(id)
72
-
- supported_version: !current_version
72
+
- supported_version: 4.1.9.0
73
73
- explain: "ISCAN(AGG_INDEX_1 <,>) | MAP (_ AS _0) | AGG (bitmap_construct_agg_l((_._0.ID) bitmap_bit_position 10000) AS _0) GROUP BY ((_._0.ID) bitmap_bucket_offset 10000 AS _0) | MAP (_._1._0 AS BITMAP, _._0._0 AS OFFSET)"
- query: SELECT bitmap_construct_agg(bitmap_bit_position(id)) as bitmap, category, bitmap_bucket_offset(id) as offset FROM T2 GROUP BY category, bitmap_bucket_offset(id)
90
-
- supported_version: !current_version
90
+
- supported_version: 4.1.9.0
91
91
- explain: "ISCAN(AGG_INDEX_2 <,>) | MAP (_ AS _0) | AGG (bitmap_construct_agg_l((_._0.ID) bitmap_bit_position 10000) AS _0) GROUP BY (_._0.CATEGORY AS _0, (_._0.ID) bitmap_bucket_offset 10000 AS _1) | MAP (_._1._0 AS BITMAP, _._0._0 AS CATEGORY, _._0._1 AS OFFSET)"
# Copy of the previous query, but disable force_continuations.
97
-
# This doesn't work before !current_version because of: https://github.com/FoundationDB/fdb-record-layer/issues/3097
97
+
# This doesn't work before 4.1.9.0 because of: https://github.com/FoundationDB/fdb-record-layer/issues/3097
98
98
# It's hard to write a test assertion that follows the expected behavior across multiple upgrades,
99
99
# but it can end up skipping values when resuming from a continuation
100
100
- query: SELECT bitmap_construct_agg(bitmap_bit_position(id)) as bitmap, category, bitmap_bucket_offset(id) as offset FROM T2 GROUP BY category, bitmap_bucket_offset(id)
Copy file name to clipboardExpand all lines: yaml-tests/src/test/resources/boolean.yamsql
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ test_block:
96
96
- result: [ { false }, { false }, { false } ]
97
97
-
98
98
- query: select B AND NULL from lb
99
-
- supported_version: !current_version # This fails when running with continuations against older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
99
+
- supported_version: 4.1.9.0 # This fails when running with continuations against older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
100
100
- result: [ { !null }, { false }, { !null } ]
101
101
-
102
102
- query: select B OR TRUE from lb
@@ -106,7 +106,7 @@ test_block:
106
106
- result: [ { true }, { false }, { !null } ]
107
107
-
108
108
- query: select B OR NULL from lb
109
-
- supported_version: !current_version # This fails when running with continuations against older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
109
+
- supported_version: 4.1.9.0 # This fails when running with continuations against older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
- query: select count(*) from (select * from (select * from (select * from "MyTable" where ID = 5) as x) as y) as z;
61
-
- supported_version: !current_version
61
+
- supported_version: 4.1.9.0
62
62
- explain: "SCAN([EQUALS promote(@c23 AS LONG)]) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)"
63
63
- result: [{!l 1}]
64
64
-
65
-
# Copy of above query to simulate force continuations mode, which doesn't work prior to !current_version
65
+
# Copy of above query to simulate force continuations mode, which doesn't work prior to 4.1.9.0
66
66
# due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
67
67
# Can remove when we no longer care about supported mixed mode testing with prior versions
68
68
- query: select count(*) from (select * from (select * from (select * from "MyTable" where ID = 5) as x) as y) as z;
69
69
- maxRows: 1
70
-
- initialVersionLessThan: !current_version
70
+
- initialVersionLessThan: 4.1.9.0
71
71
- result: [{!l 1}]
72
72
- result: [{!l 0}]
73
73
- result: [{!l 1}] # ad infinitum
74
-
- initialVersionAtLeast: !current_version
74
+
- initialVersionAtLeast: 4.1.9.0
75
75
- result: [{!l 1}]
76
76
- result: []
77
77
-
78
78
- query: select COL31, COL32 from (select * from (select * from "MyTable") as x) as y where ID = 5;
79
79
- result: [{COL31: !l 5, COL32: !null _}]
80
80
-
81
81
- query: select sum(COL1) from "MyTable";
82
-
- supported_version: !current_version
82
+
- supported_version: 4.1.9.0
83
83
- explain: "SCAN(<,>) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
84
84
- result: [{!l 210}]
85
85
-
86
-
# Copy of above query to simulate force continuations mode, which doesn't work prior to !current_version
86
+
# Copy of above query to simulate force continuations mode, which doesn't work prior to 4.1.9.0
87
87
# due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
88
88
# Can remove when we no longer care about supported mixed mode testing with prior versions
89
89
- query: select sum(COL1) from "MyTable";
90
90
- maxRows: 1
91
-
- initialVersionLessThan: !current_version
91
+
- initialVersionLessThan: 4.1.9.0
92
92
- result: [{!l 210}]
93
93
- result: [{!null _}]
94
94
- result: [{!l 210}] # ad infinitum
95
-
- initialVersionAtLeast: !current_version
95
+
- initialVersionAtLeast: 4.1.9.0
96
96
- result: [{!l 210}]
97
97
- result: []
98
98
-
99
99
- query: select count(COL1) from "MyTable";
100
-
- supported_version: !current_version
100
+
- supported_version: 4.1.9.0
101
101
- explain: "SCAN(<,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)"
102
102
- result: [{!l 13}]
103
103
-
104
-
# Copy of above query to simulate force continuations mode, which doesn't work prior to !current_version
104
+
# Copy of above query to simulate force continuations mode, which doesn't work prior to 4.1.9.0
105
105
# due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
106
106
# Can remove when we no longer care about supported mixed mode testing with prior versions
Copy file name to clipboardExpand all lines: yaml-tests/src/test/resources/functions.yamsql
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ test_block:
94
94
- result: [{_0: 1.0, _1: 1.0}]
95
95
-
96
96
- query: select coalesce(null, null, 5), coalesce(null, 1, null), coalesce(null, a1, a8) from A
97
-
- supported_version: !current_version # Force continuations does not work on older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
97
+
- supported_version: 4.1.9.0 # Force continuations does not work on older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
98
98
- result: [{_0: 5, _1: 1, _2: 1.0}]
99
99
-
100
100
- query: select b1, b2, coalesce(b1, b2, 42) from B
@@ -126,7 +126,7 @@ test_block:
126
126
{!null _}]
127
127
-
128
128
- query: select coalesce(null, (1, 1.0, 'a', true)) from C
129
-
- supported_version: !current_version # Force continuations does not work on older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
129
+
- supported_version: 4.1.9.0 # Force continuations does not work on older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3218
0 commit comments