Skip to content

Commit

Permalink
Added/Updated tests\bugs\gh_7331_test.py: Adjusted plan for query #2
Browse files Browse the repository at this point in the history
…after letter from dimitr, 11-sep-2023 20:23.
  • Loading branch information
pavel-zotov committed Sep 12, 2023
1 parent 01674a3 commit 100370c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/bugs/gh_7331_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
Confirmed difference between snapshots before and after commit
https://github.com/FirebirdSQL/firebird/commit/99c9f63f874d74beb53d338c97c033fe7c8d71a9
Checked on 5.0.0.763 (plan did not use hash join); 5.0.0.957 (plan uses HJ).
[12.09.2023] pzotov
Adjusted plan for query #2 after letter from dimitr, 11-sep-2023 20:23.
Checked on 5.0.0.1204
"""

import pytest
Expand Down Expand Up @@ -87,13 +91,15 @@
set planonly on;
--- Query #1 ---
select *
from
orders, lineitem
where
l_orderkey = o_orderkey
and l_shipdate between date '1995-03-15' and date '2000-03-15';
--- Query #2 ---
select *
from
customer, orders, lineitem
Expand All @@ -108,7 +114,7 @@

expected_stdout = """
PLAN HASH (LINEITEM INDEX (LINEITEM_SHIPDATE), ORDERS NATURAL)
PLAN HASH (LINEITEM INDEX (LINEITEM_SHIPDATE), JOIN (CUSTOMER NATURAL, ORDERS INDEX (ORDERS_CUSTKEY_FK)))
PLAN HASH (JOIN (CUSTOMER NATURAL, ORDERS INDEX (ORDERS_CUSTKEY_FK)), LINEITEM INDEX (LINEITEM_SHIPDATE))
"""

@pytest.mark.version('>=5.0')
Expand Down

0 comments on commit 100370c

Please sign in to comment.