mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 13:33:07 +01:00
Added/Updated tests\bugs\gh_8225_test.py: Uncomment display of explained plan
This commit is contained in:
parent
3aa1d69983
commit
02a8cf7ffc
@ -6,11 +6,9 @@ ISSUE: https://github.com/FirebirdSQL/firebird/issues/8225
|
|||||||
TITLE: Problematic queries when SubQueryConversion = true
|
TITLE: Problematic queries when SubQueryConversion = true
|
||||||
DESCRIPTION:
|
DESCRIPTION:
|
||||||
NOTES:
|
NOTES:
|
||||||
[23.08.2024] pzotov
|
[03.09.2024] pzotov
|
||||||
1. Explained plan output temporary disabled: there is question about missed(?) indentation after 'Refetch'.
|
Parameter 'SubQueryConversion' currently presents only in FB 5.x and _NOT_ in FB 6.x.
|
||||||
Sent letter to dimitr, 23.08.2024 21:42.
|
Because of that, testing version are limited only for 5.0.2. FB 6.x currently is NOT tested.
|
||||||
2. Parameter 'SubQueryConversion' currently presents only in FB 5.x and _NOT_ in FB 6.x.
|
|
||||||
Because of that, testing version are limited only for 5.0.2. FB 6.x currently is NOT tested.
|
|
||||||
|
|
||||||
Confirmed bug on 5.0.2.1479-adfe97a.
|
Confirmed bug on 5.0.2.1479-adfe97a.
|
||||||
Checked on 5.0.2.1482-604555f.
|
Checked on 5.0.2.1482-604555f.
|
||||||
@ -94,15 +92,36 @@ def test_1(act: Action, capsys):
|
|||||||
print(r[0],r[1])
|
print(r[0],r[1])
|
||||||
|
|
||||||
ps = cur.prepare(test_sql)
|
ps = cur.prepare(test_sql)
|
||||||
# temporary, until question with indentation will be solved by dimitr -- print( '\n'.join([replace_leading(s) for s in ps.detailed_plan.split('\n')]) )
|
print( '\n'.join([replace_leading(s) for s in ps.detailed_plan.split('\n')]) )
|
||||||
for r in cur.execute(ps):
|
for r in cur.execute(ps):
|
||||||
print(r[0],r[1])
|
print(r[0],r[1])
|
||||||
con.rollback()
|
con.rollback()
|
||||||
|
|
||||||
act.expected_stdout = f"""
|
act.expected_stdout = f"""
|
||||||
SubQueryConversion true
|
SubQueryConversion true
|
||||||
|
|
||||||
|
Select Expression
|
||||||
|
....-> First N Records
|
||||||
|
........-> Filter
|
||||||
|
............-> Hash Join (semi)
|
||||||
|
................-> Refetch
|
||||||
|
....................-> Sort (record length: 28, key length: 8)
|
||||||
|
........................-> Table "DEPARTMENT" as "D" Full Scan
|
||||||
|
................-> Record Buffer (record length: 25)
|
||||||
|
....................-> Table "EMPLOYEE" as "E" Full Scan
|
||||||
2 d2
|
2 d2
|
||||||
|
|
||||||
SubQueryConversion false
|
SubQueryConversion false
|
||||||
|
|
||||||
|
Sub-query
|
||||||
|
....-> Filter
|
||||||
|
........-> Table "EMPLOYEE" as "E" Full Scan
|
||||||
|
Select Expression
|
||||||
|
....-> First N Records
|
||||||
|
........-> Refetch
|
||||||
|
............-> Sort (record length: 28, key length: 8)
|
||||||
|
................-> Filter
|
||||||
|
....................-> Table "DEPARTMENT" as "D" Full Scan
|
||||||
2 d2
|
2 d2
|
||||||
"""
|
"""
|
||||||
act.stdout = capsys.readouterr().out
|
act.stdout = capsys.readouterr().out
|
||||||
|
Loading…
Reference in New Issue
Block a user