Skip to content

Commit 67ff49b

Browse files
committed
Added/Updated tests\functional\arno\optimizer\test_opt_full_join_03.py: Replaced WHERE-expr: added coalesce() after discussion with dimitr. Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
1 parent 796854a commit 67ff49b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/functional/arno/optimizer/test_opt_full_join_03.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
Three tables are used, where 1 table (RC) holds references to the two other tables (R and C).
99
The two tables R and C contain both 1 value that isn't inside RC.
1010
FBTEST: functional.arno.optimizer.opt_full_join_03
11+
NOTES:
12+
[07.03.2023] pzotov
13+
Replaced WHERE-expr: added coalesce() after discussion with dimitr, letter 07-mar-2023 16:29.
14+
Plan changed for datasource 'C'.
15+
Checked on 3.0.11.33665, 4.0.3.2904, 5.0.0.970
1116
"""
1217

1318
import pytest
@@ -76,16 +81,16 @@
7681
full join relationcategories rc on (rc.relationid = r.relationid)
7782
full join categories c on (c.categoryid = rc.categoryid)
7883
where
79-
c.categoryid >= 2
84+
-- c.categoryid >= 2
85+
coalesce(c.categoryid,0) >= 2
8086
order by
8187
rc.categoryid desc;
8288
"""
8389

8490
act = isql_act('db', test_script)
8591

8692
expected_stdout = """
87-
PLAN SORT (JOIN (JOIN (C INDEX (PK_CATEGORIES), JOIN (JOIN (RC NATURAL, R INDEX (PK_RELATIONS)), JOIN (R NATURAL, RC INDEX (FK_RC_RELATIONS)))), JOIN (JOIN (JOIN (RC NATURAL, R INDEX (PK_RELATIONS)), JOIN (R NATURAL, RC INDEX (FK_RC_RELATIONS))), C INDEX (PK_CATEGORIES))))
88-
93+
PLAN SORT (JOIN (JOIN (C NATURAL, JOIN (JOIN (RC NATURAL, R INDEX (PK_RELATIONS)), JOIN (R NATURAL, RC INDEX (FK_RC_RELATIONS)))), JOIN (JOIN (JOIN (RC NATURAL, R INDEX (PK_RELATIONS)), JOIN (R NATURAL, RC INDEX (FK_RC_RELATIONS))), C NATURAL)))
8994
RELATIONNAME diving snorkel shop
9095
RELATIONID 1
9196
CATEGORYID 3

0 commit comments

Comments
 (0)