Skip to content

Commit 98d988c

Browse files
Re-enable force continuation tests in Yaml (#3393)
- Because of #3096, some force continuation tests cannot be run before, re-enable these tests. - Cleans up tests that care about versions < 4.1.9.0 --------- Co-authored-by: Alec Grieser <[email protected]>
1 parent 06add7c commit 98d988c

21 files changed

+18
-654
lines changed

yaml-tests/src/test/resources/aggregate-index-tests-count.yamsql

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,8 @@ test_block:
9090
- result: [{4}]
9191
-
9292
- query: select count(*) from t2 group by col2
93-
# Plan deserialization previously failed : https://github.com/FoundationDB/fdb-record-layer/issues/3214
94-
- supported_version: 4.1.9.0
9593
- explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)"
9694
- result: [{1}, {3}]
97-
-
98-
# Same as above test, but tests serialization upgrades from before 4.1.9.0. Can be removed once we no longer
99-
# care about upgrading to that version from older versions
100-
- query: select count(*) from t2 group by col2
101-
- maxRows: 1
102-
- initialVersionLessThan: 4.1.9.0
103-
- result: [{1}]
104-
- result: [{2}] # Off by one due to: https://github.com/FoundationDB/fdb-record-layer/issues/3097 (also fixed in 4.1.9.0)
105-
- error: 'XX000' # plan fails to deserialize on older server
106-
- initialVersionAtLeast: 4.1.9.0
107-
# Covered in above test case
10895
-
10996
- query: select count(col1) from t2
11097
- explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)"
@@ -113,19 +100,6 @@ test_block:
113100
- result: [{2}]
114101
-
115102
- query: select count(col1) from t2 group by col2
116-
# Plan deserialization previously failed : https://github.com/FoundationDB/fdb-record-layer/issues/3214
117-
- supported_version: 4.1.9.0
118103
- explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)"
119104
- result: [{1}, {1}]
120-
-
121-
# Same as above test, but tests serialization upgrades from before 4.1.9.0. Can be removed once we no longer
122-
# care about upgrading to that version from older versions
123-
- query: select count(col1) from t2 group by col2
124-
- maxRows: 1
125-
- initialVersionLessThan: 4.1.9.0
126-
- result: [{1}]
127-
- result: [{1}]
128-
- error: 'XX000' # plan fails to deserialize on older server
129-
- initialVersionAtLeast: 4.1.9.0
130-
# Covered in above test case
131105
...

yaml-tests/src/test/resources/aggregate-index-tests.yamsql

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,8 @@ test_block:
156156
# At some point, should be able to roll up values from the aggregate index. However, even
157157
# controlling for that, it can still use the index
158158
- query: select max(col2) from T1 use index (mv8);
159-
- supported_version: 4.1.9.0
160159
- explain: "ISCAN(MV8 <,>) | MAP (_ AS _0) | AGG (max_l(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
161160
- result: [{!l 13}]
162-
-
163-
- query: select max(col2) from T1 use index (mv8);
164-
- maxRows: 1
165-
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
166-
# (Extra values being produced after exhausting source of an aggregate cursor)
167-
# Can remove once we do not care about backwards compatibility before 4.1.9.0
168-
- initialVersionLessThan: 4.1.9.0
169-
# Different (incorrect) behavior for different past versions
170-
- initialVersionAtLeast: 4.1.9.0
171-
- result: [{!l 13}]
172-
- result: []
173161
-
174162
# Min/max indexes need keep what amounts to a standard value index on their keys (in order to properly look up
175163
# the min/max). That index should be usable for normal queries just like a value index. Note that the scan is
@@ -183,43 +171,14 @@ test_block:
183171
- result: [{!l 5}, {!l 4}, {!l 3}, {!l 2}, {!l 1}]
184172
-
185173
- query: select min(col3) from T2 group by col1, col2;
186-
- supported_version: 4.1.9.0
187174
- 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)"
188175
- result: [{!l 1}, {!l 2}, {!l 3}]
189-
-
190-
- query: select min(col3) from T2 group by col1, col2;
191-
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
192-
# (Extra values being produced after exhausting source of an aggregate cursor)
193-
# Can remove once we do not care about backwards compatibility before 4.1.9.0
194-
- maxRows: 1
195-
- initialVersionLessThan: 4.1.9.0
196-
# Different (incorrect) behavior for different past versions
197-
- initialVersionAtLeast: 4.1.9.0
198-
- result: [{!l 1}]
199-
- result: [{!l 2}]
200-
- result: [{!l 3}]
201-
- result: []
202176
-
203177
# this should use the aggregate index in the future, for now, it is using streaming aggregate
204178
# over base table scan.
205179
- query: select max(col2) from t2;
206-
- supported_version: 4.1.9.0
207180
- explain: "ISCAN(MV3 <,>) | MAP (_ AS _0) | AGG (max_l(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
208181
- result: [{!l 2}]
209-
-
210-
- query: select max(col2) from t2;
211-
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
212-
# (Extra values being produced after exhausting source of an aggregate cursor)
213-
# Can remove once we do not care about backwards compatibility before 4.1.9.0
214-
- supported_version: 4.1.9.0
215-
- maxRows: 1
216-
- initialVersionLessThan: 4.1.9.0
217-
- result: [{!l 2}]
218-
- result: [{!null _}]
219-
- result: [{!l 2}] # ad infinitum
220-
- initialVersionAtLeast: 4.1.9.0
221-
- result: [{!l 2}]
222-
- result: []
223182
-
224183
- query: select col1, sum(col2) from T1 USE INDEX (vi1) group by col1;
225184
- explain: "ISCAN(VI1 <,>) | MAP (_ AS _0) | AGG (sum_l(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0) | MAP (_._0._0 AS COL1, _._1._0 AS _1)"
@@ -273,28 +232,12 @@ test_block:
273232
-
274233
# Permuted max index can also be used to evaluate other aggregate functions via aggregation and roll-up
275234
- query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 asc;
276-
- supported_version: 4.1.9.0
277235
- 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)"
278236
- result: [{COL3: 1, S: 1}, {COL3: 2, S: 2}, {COL3: 100, S: 1}, {COL3: 200, S: 2}]
279-
-
280-
- query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 asc;
281-
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
282-
# (Extra values being produced after exhausting source of an aggregate cursor)
283-
# Can remove once we do not care about backwards compatibility before 4.1.9.0
284-
- maxRows: 0
285-
- result: [{COL3: 1, S: 1}, {COL3: 2, S: 2}, {COL3: 100, S: 1}, {COL3: 200, S: 2}]
286237
-
287238
- query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 desc;
288-
- supported_version: 4.1.9.0
289239
- 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)"
290240
- result: [{COL3: 200, S: 2}, {COL3: 100, S: 1}, {COL3: 2, S: 2}, {COL3: 1, S: 1}]
291-
-
292-
- query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 desc;
293-
# Cannot use FORCE_CONTINUATIONS with older versions due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
294-
# (Extra values being produced after exhausting source of an aggregate cursor)
295-
# Can remove once we do not care about backwards compatibility before 4.1.9.0
296-
- maxRows: 0
297-
- result: [{COL3: 200, S: 2}, {COL3: 100, S: 1}, {COL3: 2, S: 2}, {COL3: 1, S: 1}]
298241
# -
299242
# # grouping by constant is not yet supported.
300243
# - query: select sum(col2) from t1 group by 3,2,1;

yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,36 +69,10 @@ test_block:
6969
{BITMAP: xStartsWith_1250'0400008', 'CATEGORY': 'world', 'OFFSET':0}]
7070
-
7171
- 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: 4.1.9.0
7372
- 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)"
7473
- unorderedResult: [{BITMAP: xStartsWith_1250'060000c', 'OFFSET':0}, {BITMAP: xStartsWith_1250'02', 'OFFSET':10000}]
7574
-
76-
- 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)
77-
- maxRows: 1
78-
# Older versions used to skip over a result here due to an off-by-one error (see: https://github.com/foundationdb/fdb-record-layer/pull/3112)
79-
# Retain this test of older behavior to allow for continuation testing with older versions
80-
# This test can be removed when we no longer care about testing compatibility with older versions
81-
- initialVersionLessThan: 4.1.9.0
82-
- result: [{BITMAP: xStartsWith_1250'060000c', 'OFFSET':0}]
83-
- result: []
84-
- initialVersionAtLeast: 4.1.9.0
85-
- result: [{BITMAP: xStartsWith_1250'060000c', 'OFFSET':0}]
86-
- result: [{BITMAP: xStartsWith_1250'02', 'OFFSET':10000}]
87-
- result: []
88-
-
89-
- 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: 4.1.9.0
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)"
92-
- unorderedResult: [{BITMAP: xStartsWith_1250'0200004', 'CATEGORY': 'hello', 'OFFSET':0},
93-
{BITMAP: xStartsWith_1250'02', 'CATEGORY': 'hello', 'OFFSET':10000},
94-
{BITMAP: xStartsWith_1250'0400008', 'CATEGORY': 'world', 'OFFSET':0}]
95-
-
96-
# Copy of the previous query, but disable force_continuations.
97-
# This doesn't work before 4.1.9.0 because of: https://github.com/FoundationDB/fdb-record-layer/issues/3097
98-
# It's hard to write a test assertion that follows the expected behavior across multiple upgrades,
99-
# but it can end up skipping values when resuming from a continuation
10075
- 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)
101-
- maxRows: 0
10276
- 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)"
10377
- unorderedResult: [{BITMAP: xStartsWith_1250'0200004', 'CATEGORY': 'hello', 'OFFSET':0},
10478
{BITMAP: xStartsWith_1250'02', 'CATEGORY': 'hello', 'OFFSET':10000},

yaml-tests/src/test/resources/boolean.yamsql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ test_block:
9696
- result: [ { false }, { false }, { false } ]
9797
-
9898
- query: select B AND NULL from lb
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
10099
- result: [ { !null }, { false }, { !null } ]
101100
-
102101
- query: select B OR TRUE from lb
@@ -106,7 +105,6 @@ test_block:
106105
- result: [ { true }, { false }, { !null } ]
107106
-
108107
- query: select B OR NULL from lb
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
110108
- result: [ { true }, { !null }, { !null } ]
111109
-
112110
- query: select NOT B from lb

yaml-tests/src/test/resources/catalog.yamsql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ test_block:
6262
- query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas
6363
group by template_name, template_version having template_name = 'TEST_TEMPLATE_1') as t;
6464
- explain: "AISCAN(TEMPLATES_COUNT_INDEX [EQUALS promote(@c29 AS STRING)] BY_GROUP -> [_0: KEY:[0], _1: KEY:[1], _2: VALUE:[0]]) | MAP ((_._2 AS CNT, _._0 AS TEMPLATE_NAME, _._1 AS TEMPLATE_VERSION) AS _0) | AGG (sum_l(_._0.CNT) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
65-
- maxRows: 0 # Disable force continuations because of empty continuation due to: https://github.com/FoundationDB/fdb-record-layer/issues/3206
6665
- result: [{4}]
6766
-
6867
# How many schemas with the specified schemaTemplateName and schemaTemplateVersion exist in this cluster?

yaml-tests/src/test/resources/create-drop.metrics.binpb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
�
1+
�
22
S
3-
unnamed-4FEXPLAIN select count(*) from "TEMPLATES" where template_name = 'TEMP1'�
4-
��ɐc ���(0��/8$@�SCAN(<,>) | TFILTER TEMPLATES | FILTER _.TEMPLATE_NAME EQUALS promote(@c11 AS STRING) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)�digraph G {
3+
unnamed-4FEXPLAIN select count(*) from "TEMPLATES" where template_name = 'TEMP1'�
4+
����>c ���&(0���8$@�SCAN(<,>) | TFILTER TEMPLATES | FILTER _.TEMPLATE_NAME EQUALS promote(@c11 AS STRING) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)�digraph G {
55
fontname=courier;
66
rankdir=BT;
77
splines=polyline;
@@ -24,7 +24,8 @@ S
2424
T
2525

2626
unnamed-10FEXPLAIN select count(*) from "DATABASES" where database_id = '/FRL/DB'�
27-
��ުj ��(0��8$@�SCAN(<,>) | TFILTER DATABASES | FILTER _.DATABASE_ID EQUALS promote(@c11 AS STRING) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)�digraph G {
27+
���j ֵ�
28+
(0��p8$@�SCAN(<,>) | TFILTER DATABASES | FILTER _.DATABASE_ID EQUALS promote(@c11 AS STRING) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)�digraph G {
2829
fontname=courier;
2930
rankdir=BT;
3031
splines=polyline;
@@ -43,11 +44,12 @@ unnamed-10FEXPLAIN select count(*) from "DATABASES" where database_id = '/FRL/D
4344
7 -> 6 [ label=<&nbsp;q34> label="q34" color="gray20" style="bold" fontname="courier" fontsize="8" arrowhead="normal" arrowtail="none" dir="both" ];
4445
8 -> 7 [ color="gray20" style="solid" fontname="courier" fontsize="8" arrowhead="normal" arrowtail="none" dir="both" ];
4546
2 -> 1 [ label=<&nbsp;q6> label="q6" color="gray20" style="bold" fontname="courier" fontsize="8" arrowhead="normal" arrowtail="none" dir="both" ];
46-
}�
47+
}�
4748
R
4849

49-
unnamed-20DEXPLAIN select count(*) from "SCHEMAS" where database_id = '/FRL/DB'�
50-
�㜢� ���(*0��,8A@�COVERING(TEMPLATES_VALUE_INDEX <,> -> [DATABASE_ID: KEY[2], SCHEMA_NAME: KEY[3], TEMPLATE_NAME: KEY[0], TEMPLATE_VERSION: KEY[1]]) | FILTER _.DATABASE_ID EQUALS promote(@c11 AS STRING) | FETCH | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)�digraph G {
50+
unnamed-20DEXPLAIN select count(*) from "SCHEMAS" where database_id = '/FRL/DB'�
51+
���� ���
52+
(*0���8A@�COVERING(TEMPLATES_VALUE_INDEX <,> -> [DATABASE_ID: KEY[2], SCHEMA_NAME: KEY[3], TEMPLATE_NAME: KEY[0], TEMPLATE_VERSION: KEY[1]]) | FILTER _.DATABASE_ID EQUALS promote(@c11 AS STRING) | FETCH | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)�digraph G {
5153
fontname=courier;
5254
rankdir=BT;
5355
splines=polyline;

yaml-tests/src/test/resources/create-drop.metrics.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ unnamed-4:
44
AS STRING) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP
55
(coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)
66
task_count: 354
7-
task_total_time_ms: 8
7+
task_total_time_ms: 130
88
transform_count: 99
9-
transform_time_ms: 4
9+
transform_time_ms: 81
1010
transform_yield_count: 22
11-
insert_time_ms: 0
11+
insert_time_ms: 10
1212
insert_new_count: 36
1313
insert_reused_count: 3
1414
unnamed-10:
@@ -17,11 +17,11 @@ unnamed-10:
1717
AS STRING) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP
1818
(coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)
1919
task_count: 366
20-
task_total_time_ms: 4
20+
task_total_time_ms: 32
2121
transform_count: 106
22-
transform_time_ms: 2
22+
transform_time_ms: 22
2323
transform_yield_count: 28
24-
insert_time_ms: 0
24+
insert_time_ms: 1
2525
insert_new_count: 36
2626
insert_reused_count: 3
2727
unnamed-20:
@@ -32,10 +32,10 @@ unnamed-20:
3232
AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG))
3333
AS _0)'
3434
task_count: 580
35-
task_total_time_ms: 11
35+
task_total_time_ms: 45
3636
transform_count: 151
37-
transform_time_ms: 5
37+
transform_time_ms: 22
3838
transform_yield_count: 42
39-
insert_time_ms: 0
39+
insert_time_ms: 2
4040
insert_new_count: 65
4141
insert_reused_count: 4

yaml-tests/src/test/resources/field-index-tests-proto.yamsql

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -58,61 +58,19 @@ test_block:
5858
- result: [{ID: !l 5, COL1: !l 10, COL31: !l 5, COL32: !null _, COL2: !l 5}]
5959
-
6060
- query: select count(*) from (select * from (select * from (select * from "MyTable" where ID = 5) as x) as y) as z;
61-
- supported_version: 4.1.9.0
6261
- 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)"
6362
- result: [{!l 1}]
64-
-
65-
# Copy of above query to simulate force continuations mode, which doesn't work prior to 4.1.9.0
66-
# due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
67-
# Can remove when we no longer care about supported mixed mode testing with prior versions
68-
- query: select count(*) from (select * from (select * from (select * from "MyTable" where ID = 5) as x) as y) as z;
69-
- maxRows: 1
70-
- initialVersionLessThan: 4.1.9.0
71-
- result: [{!l 1}]
72-
- result: [{!l 0}]
73-
- result: [{!l 1}] # ad infinitum
74-
- initialVersionAtLeast: 4.1.9.0
75-
- result: [{!l 1}]
76-
- result: []
7763
-
7864
- query: select COL31, COL32 from (select * from (select * from "MyTable") as x) as y where ID = 5;
7965
- result: [{COL31: !l 5, COL32: !null _}]
8066
-
8167
- query: select sum(COL1) from "MyTable";
82-
- supported_version: 4.1.9.0
8368
- explain: "SCAN(<,>) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
8469
- result: [{!l 210}]
85-
-
86-
# Copy of above query to simulate force continuations mode, which doesn't work prior to 4.1.9.0
87-
# due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
88-
# Can remove when we no longer care about supported mixed mode testing with prior versions
89-
- query: select sum(COL1) from "MyTable";
90-
- maxRows: 1
91-
- initialVersionLessThan: 4.1.9.0
92-
- result: [{!l 210}]
93-
- result: [{!null _}]
94-
- result: [{!l 210}] # ad infinitum
95-
- initialVersionAtLeast: 4.1.9.0
96-
- result: [{!l 210}]
97-
- result: []
9870
-
9971
- query: select count(COL1) from "MyTable";
100-
- supported_version: 4.1.9.0
10172
- 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)"
10273
- result: [{!l 13}]
103-
-
104-
# Copy of above query to simulate force continuations mode, which doesn't work prior to 4.1.9.0
105-
# due to: https://github.com/FoundationDB/fdb-record-layer/issues/3096
106-
# Can remove when we no longer care about supported mixed mode testing with prior versions
107-
- query: select count(COL1) from "MyTable";
108-
- maxRows: 1
109-
- initialVersionLessThan: 4.1.9.0
110-
- result: [{!l 13}]
111-
- result: [{!l 0}]
112-
- result: [{!l 13}] # ad infinitum
113-
- initialVersionAtLeast: 4.1.9.0
114-
- result: [{!l 13}]
115-
- result: []
11674
-
11775
- query: select * from (select * from (select * from (select * from "MyTable" where ID > 10) as x) as y) as z;
11876
- result: [{ID: !l 11, COL1: !l 20, COL31: !null _, COL32: !l 12, COL2: !l 11},

0 commit comments

Comments
 (0)