|
8 | 8 | JIRA: CORE-3450
|
9 | 9 | FBTEST: bugs.core_3450
|
10 | 10 | NOTES:
|
11 |
| - [30.11.2016] pzotov |
12 |
| - It seems that we have regression in current 4.0 snapshots (elapsed time more than 10x comparing with 2.5). |
13 |
| - Also, 4.0 has different plan comparing with 3.0. |
14 |
| - After discuss with dimitr it was decided to commit this test into fbt-repo in order to have constant |
15 |
| - reminder about this issue. |
16 |
| - Currently this test should FAIL on 4.0. |
17 |
| -
|
18 |
| - [22.09.2022] pzotov |
19 |
| - Removed SKIP notation because test works fine on FB 4.0.1 |
20 |
| - Checked on 3.0.8.33535, 4.0.1.2692, 5.0.0.736 |
| 11 | + [27.06.2025] pzotov |
| 12 | + Separated expected output for FB major versions prior/since 6.x. |
| 13 | + No substitutions are used to suppress schema and quotes. Discussed with dimitr, 24.06.2025 12:39. |
| 14 | +
|
| 15 | + Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813. |
21 | 16 | """
|
22 | 17 |
|
23 | 18 | import pytest
|
|
101 | 96 |
|
102 | 97 | act = isql_act('db', test_script)
|
103 | 98 |
|
104 |
| -expected_stdout = """ |
| 99 | +expected_stdout_5x = """ |
105 | 100 | PLAN JOIN (JOIN (P1 NATURAL, T1 INDEX (TEST_1_F2)), T2 INDEX (TEST_2_F1), T3 INDEX (TEST_3_F1))
|
106 | 101 | """
|
107 | 102 |
|
| 103 | +expected_stdout_6x = """ |
| 104 | + PLAN JOIN (JOIN ("P1" NATURAL, "T1" INDEX ("PUBLIC"."TEST_1_F2")), "T2" INDEX ("PUBLIC"."TEST_2_F1"), "T3" INDEX ("PUBLIC"."TEST_3_F1")) |
| 105 | +""" |
| 106 | + |
108 | 107 | @pytest.mark.version('>=3.0')
|
109 | 108 | def test_1(act: Action):
|
110 |
| - act.expected_stdout = expected_stdout |
111 |
| - act.execute() |
| 109 | + act.expected_stdout = expected_stdout_5x if act.is_version('<6') else expected_stdout_6x |
| 110 | + act.execute(combine_output = True) |
112 | 111 | assert act.clean_stdout == act.clean_expected_stdout
|
113 |
| - |
0 commit comments