Skip to content

Commit dd7608d

Browse files
committed
test: Update expected explanations
1 parent 3f0d832 commit dd7608d

3 files changed

+25
-27
lines changed

test/expected/explain/303_import_jobs_for_norway_small_history-statistical_unit_def.txt

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,31 @@
33
Hash Left Join
44
Hash Cond: ((timeline_establishment.unit_type = tpa.unit_type) AND (timeline_establishment.unit_id = tpa.unit_id))
55
CTE external_idents_agg
6-
-> HashAggregate
6+
-> GroupAggregate
77
Group Key: ('establishment'::statistical_unit_type), ei.establishment_id
8-
-> Append
9-
-> Hash Join
10-
Hash Cond: (eit.id = ei.type_id)
11-
-> Seq Scan on external_ident_type eit
12-
-> Hash
8+
-> Sort
9+
Sort Key: ('establishment'::statistical_unit_type), ei.establishment_id
10+
-> Append
11+
-> Nested Loop
1312
-> Seq Scan on external_ident ei
1413
Filter: (establishment_id IS NOT NULL)
15-
-> Hash Join
16-
Hash Cond: (eit_1.id = ei_1.type_id)
17-
-> Seq Scan on external_ident_type eit_1
18-
-> Hash
14+
-> Index Scan using external_ident_type_pkey on external_ident_type eit
15+
Index Cond: (id = ei.type_id)
16+
-> Nested Loop
1917
-> Seq Scan on external_ident ei_1
2018
Filter: (legal_unit_id IS NOT NULL)
21-
-> Hash Join
22-
Hash Cond: (eit_2.id = ei_2.type_id)
23-
-> Seq Scan on external_ident_type eit_2
24-
-> Hash
19+
-> Index Scan using external_ident_type_pkey on external_ident_type eit_1
20+
Index Cond: (id = ei_1.type_id)
21+
-> Nested Loop
2522
-> Seq Scan on external_ident ei_2
2623
Filter: (enterprise_id IS NOT NULL)
27-
-> Hash Join
28-
Hash Cond: (eit_3.id = ei_3.type_id)
29-
-> Seq Scan on external_ident_type eit_3
30-
-> Hash
24+
-> Index Scan using external_ident_type_pkey on external_ident_type eit_2
25+
Index Cond: (id = ei_2.type_id)
26+
-> Nested Loop
3127
-> Seq Scan on external_ident ei_3
3228
Filter: (enterprise_group_id IS NOT NULL)
29+
-> Index Scan using external_ident_type_pkey on external_ident_type eit_3
30+
Index Cond: (id = ei_3.type_id)
3331
-> Hash Left Join
3432
Hash Cond: ((NULL::integer) = eia3.unit_id)
3533
-> Hash Left Join
@@ -80,5 +78,5 @@
8078
Filter: (enterprise_group_id IS NOT NULL)
8179
-> Hash
8280
-> Seq Scan on tag t_3
83-
(80 rows)
81+
(78 rows)
8482

test/expected/explain/303_import_jobs_for_norway_small_history-timeline_establishment_def.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
Sort Key: t_1.unit_id, t_1.valid_from
4747
-> Nested Loop
4848
-> Hash Join
49-
Hash Cond: (sfu.establishment_id = t_1.unit_id)
49+
Hash Cond: (t_1.unit_id = sfu.establishment_id)
5050
Join Filter: ((t_1.valid_from < sfu.valid_until) AND (sfu.valid_from < t_1.valid_until))
51-
-> Seq Scan on stat_for_unit sfu
51+
-> Seq Scan on timesegments t_1
52+
Filter: (unit_type = 'establishment'::statistical_unit_type)
5253
-> Hash
53-
-> Seq Scan on timesegments t_1
54-
Filter: (unit_type = 'establishment'::statistical_unit_type)
54+
-> Seq Scan on stat_for_unit sfu
5555
-> Index Scan using stat_definition_pkey on stat_definition sd
5656
Index Cond: (id = sfu.stat_definition_id)
5757
-> Memoize

test/expected/explain/303_import_jobs_for_norway_small_history-timeline_legal_unit_def.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@
4949
Sort Key: t_1.unit_id, t_1.valid_from
5050
-> Nested Loop
5151
-> Hash Join
52-
Hash Cond: (sfu.legal_unit_id = t_1.unit_id)
52+
Hash Cond: (t_1.unit_id = sfu.legal_unit_id)
5353
Join Filter: ((t_1.valid_from < sfu.valid_until) AND (sfu.valid_from < t_1.valid_until))
54-
-> Seq Scan on stat_for_unit sfu
54+
-> Seq Scan on timesegments t_1
55+
Filter: (unit_type = 'legal_unit'::statistical_unit_type)
5556
-> Hash
56-
-> Seq Scan on timesegments t_1
57-
Filter: (unit_type = 'legal_unit'::statistical_unit_type)
57+
-> Seq Scan on stat_for_unit sfu
5858
-> Index Scan using stat_definition_pkey on stat_definition sd
5959
Index Cond: (id = sfu.stat_definition_id)
6060
-> Memoize

0 commit comments

Comments
 (0)