Check firebird.log [no messages found for interval when this test was running]
Jump to: output_first_mismatch    outcomes_full_history    elapsed_time_chart
Show cross-report outcomes.

Annotation type Annotation details
2 @message
assert   
    Select Expression
    ....-> Filter
    ........-> Hash Join (semi)
    ............-> Filter
    ................-> Hash Join (inner)
    ....................-> Nested Loop Join (outer)
    ........................-> Nested Loop Join (outer)
  - ............................-> Table "T1" as "V A" Full Scan
  + ............................-> Table "PUBLIC"."T1" as "PUBLIC"."V" "A" Full Scan
    ............................-> Filter
  - ................................-> Table "T2" as "V B" Full Scan
  + ................................-> Table "PUBLIC"."T2" as "PUBLIC"."V" "B" Full Scan
    ........................-> Filter
  - ............................-> Table "T3" as "V C" Full Scan
  + ............................-> Table "PUBLIC"."T3" as "PUBLIC"."V" "C" Full Scan
    ....................-> Record Buffer (record length: NN)
  - ........................-> Table "T4" as "D" Full Scan
  + ........................-> Table "PUBLIC"."T4" as "D" Full Scan
    ............-> Record Buffer (record length: NN)
  - ................-> Table "T5" as "E" Full Scan
  + ................-> Table "PUBLIC"."T5" as "E" Full Scan
    1 1 1

LOG DETAILS:

2025-06-27 05:18:10.915
2025-06-27 05:18:10.925 act = <firebird.qa.plugin.Action object at [hex]>
2025-06-27 05:18:10.933 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-06-27 05:18:10.943
2025-06-27 05:18:10.955 @pytest.mark.version('>=5.0.2')
2025-06-27 05:18:10.966 def test_1(act: Action, capsys):
2025-06-27 05:18:10.976
2025-06-27 05:18:10.988 test_sql = """
2025-06-27 05:18:10.997 select v.a_id, v.b_id, v.c_id
2025-06-27 05:18:11.006 from v
2025-06-27 05:18:11.018 join t4 d on v.c_id = d.id
2025-06-27 05:18:11.027 where exists (
2025-06-27 05:18:11.038 select 1
2025-06-27 05:18:11.047 from t5 e where e.id = d.id
2025-06-27 05:18:11.055 )
2025-06-27 05:18:11.064 """
2025-06-27 05:18:11.077
2025-06-27 05:18:11.088 srv_cfg = driver_config.register_server(name = f'srv_cfg_8223', config = '')
2025-06-27 05:18:11.099 db_cfg_name = f'db_cfg_8223'
2025-06-27 05:18:11.108 db_cfg_object = driver_config.register_database(name = db_cfg_name)
2025-06-27 05:18:11.120 db_cfg_object.server.value = srv_cfg.name
2025-06-27 05:18:11.130 db_cfg_object.database.value = str(act.db.db_path)
2025-06-27 05:18:11.142 if act.is_version('<6'):
2025-06-27 05:18:11.154 db_cfg_object.config.value = f"""
2025-06-27 05:18:11.165 SubQueryConversion = true
2025-06-27 05:18:11.177 """
2025-06-27 05:18:11.188
2025-06-27 05:18:11.197 with connect(db_cfg_name, user = act.db.user, password = act.db.password) as con:
2025-06-27 05:18:11.204 ps, rs = None, None
2025-06-27 05:18:11.209 try:
2025-06-27 05:18:11.215 cur = con.cursor()
2025-06-27 05:18:11.220 ps = cur.prepare(test_sql)
2025-06-27 05:18:11.225
2025-06-27 05:18:11.230 # Print explained plan with padding eash line by dots in order to see indentations:
2025-06-27 05:18:11.238 print( '\n'.join([replace_leading(s) for s in ps.detailed_plan.split('\n')]) )
2025-06-27 05:18:11.244
2025-06-27 05:18:11.250 # ::: NB ::: 'ps' returns data, i.e. this is SELECTABLE expression.
2025-06-27 05:18:11.255 # We have to store result of cur.execute(<psInstance>) in order to
2025-06-27 05:18:11.261 # close it explicitly.
2025-06-27 05:18:11.267 # Otherwise AV can occur during Python garbage collection and this
2025-06-27 05:18:11.272 # causes pytest to hang on its final point.
2025-06-27 05:18:11.277 # Explained by hvlad, email 26.10.24 17:42
2025-06-27 05:18:11.282 rs = cur.execute(ps)
2025-06-27 05:18:11.287 for r in rs:
2025-06-27 05:18:11.298 print(r[0], r[1], r[2])
2025-06-27 05:18:11.305 except DatabaseError as e:
2025-06-27 05:18:11.311 print(e.__str__())
2025-06-27 05:18:11.318 print(e.gds_codes)
2025-06-27 05:18:11.328 finally:
2025-06-27 05:18:11.337 if rs:
2025-06-27 05:18:11.345 rs.close() # <<< EXPLICITLY CLOSING CURSOR RESULTS
2025-06-27 05:18:11.351 if ps:
2025-06-27 05:18:11.361 ps.free()
2025-06-27 05:18:11.370
2025-06-27 05:18:11.377
2025-06-27 05:18:11.388 act.expected_stdout = f"""
2025-06-27 05:18:11.398 Select Expression
2025-06-27 05:18:11.405 ....-> Filter
2025-06-27 05:18:11.411 ........-> Hash Join (semi)
2025-06-27 05:18:11.416 ............-> Filter
2025-06-27 05:18:11.423 ................-> Hash Join (inner)
2025-06-27 05:18:11.431 ....................-> Nested Loop Join (outer)
2025-06-27 05:18:11.439 ........................-> Nested Loop Join (outer)
2025-06-27 05:18:11.450 ............................-> Table "T1" as "V A" Full Scan
2025-06-27 05:18:11.459 ............................-> Filter
2025-06-27 05:18:11.467 ................................-> Table "T2" as "V B" Full Scan
2025-06-27 05:18:11.474 ........................-> Filter
2025-06-27 05:18:11.481 ............................-> Table "T3" as "V C" Full Scan
2025-06-27 05:18:11.487 ....................-> Record Buffer (record length: 25)
2025-06-27 05:18:11.494 ........................-> Table "T4" as "D" Full Scan
2025-06-27 05:18:11.500 ............-> Record Buffer (record length: 25)
2025-06-27 05:18:11.506 ................-> Table "T5" as "E" Full Scan
2025-06-27 05:18:11.516 1 1 1
2025-06-27 05:18:11.528 """
2025-06-27 05:18:11.538 act.stdout = capsys.readouterr().out
2025-06-27 05:18:11.546 >       assert act.clean_stdout == act.clean_expected_stdout
2025-06-27 05:18:11.554 E       assert
2025-06-27 05:18:11.565 E           Select Expression
2025-06-27 05:18:11.574 E           ....-> Filter
2025-06-27 05:18:11.582 E           ........-> Hash Join (semi)
2025-06-27 05:18:11.589 E           ............-> Filter
2025-06-27 05:18:11.595 E           ................-> Hash Join (inner)
2025-06-27 05:18:11.601 E           ....................-> Nested Loop Join (outer)
2025-06-27 05:18:11.606 E           ........................-> Nested Loop Join (outer)
2025-06-27 05:18:11.612 E         - ............................-> Table "T1" as "V A" Full Scan
2025-06-27 05:18:11.624 E         + ............................-> Table "PUBLIC"."T1" as "PUBLIC"."V" "A" Full Scan
2025-06-27 05:18:11.640 E           ............................-> Filter
2025-06-27 05:18:11.650 E         - ................................-> Table "T2" as "V B" Full Scan
2025-06-27 05:18:11.663 E         + ................................-> Table "PUBLIC"."T2" as "PUBLIC"."V" "B" Full Scan
2025-06-27 05:18:11.678 E           ........................-> Filter
2025-06-27 05:18:11.684 E         - ............................-> Table "T3" as "V C" Full Scan
2025-06-27 05:18:11.706 E         + ............................-> Table "PUBLIC"."T3" as "PUBLIC"."V" "C" Full Scan
2025-06-27 05:18:11.727 E           ....................-> Record Buffer (record length: NN)
2025-06-27 05:18:11.736 E         - ........................-> Table "T4" as "D" Full Scan
2025-06-27 05:18:11.743 E         + ........................-> Table "PUBLIC"."T4" as "D" Full Scan
2025-06-27 05:18:11.757 E           ............-> Record Buffer (record length: NN)
2025-06-27 05:18:11.766 E         - ................-> Table "T5" as "E" Full Scan
2025-06-27 05:18:11.778 E         + ................-> Table "PUBLIC"."T5" as "E" Full Scan
2025-06-27 05:18:11.795 E           1 1 1
2025-06-27 05:18:11.805
2025-06-27 05:18:11.814 tests/bugs/gh_8223_test.py:152: AssertionError
2025-06-27 05:18:11.821 ---------------------------- Captured stdout setup -----------------------------
2025-06-27 05:18:11.833 Creating db: localhost:/var/tmp/qa_2024/test_11704/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
3 #text
act = <firebird.qa.plugin.Action pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>

    @pytest.mark.version('>=5.0.2')
    def test_1(act: Action, capsys):
    
        test_sql = """
            select v.a_id, v.b_id, v.c_id
            from v
            join t4 d on v.c_id = d.id
            where exists (
                select 1
                from t5 e where e.id = d.id
            )
        """
    
        srv_cfg = driver_config.register_server(name = f'srv_cfg_8223', config = '')
        db_cfg_name = f'db_cfg_8223'
        db_cfg_object = driver_config.register_database(name = db_cfg_name)
        db_cfg_object.server.value = srv_cfg.name
        db_cfg_object.database.value = str(act.db.db_path)
        if act.is_version('<6'):
            db_cfg_object.config.value = f"""
                SubQueryConversion = true
            """
    
        with connect(db_cfg_name, user = act.db.user, password = act.db.password) as con:
            ps, rs = None, None
            try:
                cur = con.cursor()
                ps = cur.prepare(test_sql)
    
                # Print explained plan with padding eash line by dots in order to see indentations:
                print( '\n'.join([replace_leading(s) for s in ps.detailed_plan.split('\n')]) )
    
                # ::: NB ::: 'ps' returns data, i.e. this is SELECTABLE expression.
                # We have to store result of cur.execute(<psInstance>) in order to
                # close it explicitly.
                # Otherwise AV can occur during Python garbage collection and this
                # causes pytest to hang on its final point.
                # Explained by hvlad, email 26.10.24 17:42
                rs = cur.execute(ps)
                for r in rs:
                    print(r[0], r[1], r[2])
            except DatabaseError as e:
                print(e.__str__())
                print(e.gds_codes)
            finally:
                if rs:
                    rs.close() # <<< EXPLICITLY CLOSING CURSOR RESULTS
                if ps:
                    ps.free()
    
    
        act.expected_stdout = f"""
            Select Expression
            ....-> Filter
            ........-> Hash Join (semi)
            ............-> Filter
            ................-> Hash Join (inner)
            ....................-> Nested Loop Join (outer)
            ........................-> Nested Loop Join (outer)
            ............................-> Table "T1" as "V A" Full Scan
            ............................-> Filter
            ................................-> Table "T2" as "V B" Full Scan
            ........................-> Filter
            ............................-> Table "T3" as "V C" Full Scan
            ....................-> Record Buffer (record length: 25)
            ........................-> Table "T4" as "D" Full Scan
            ............-> Record Buffer (record length: 25)
            ................-> Table "T5" as "E" Full Scan
            1 1 1
        """
        act.stdout = capsys.readouterr().out
>       assert act.clean_stdout == act.clean_expected_stdout
E       assert   
E           Select Expression
E           ....-> Filter
E           ........-> Hash Join (semi)
E           ............-> Filter
E           ................-> Hash Join (inner)
E           ....................-> Nested Loop Join (outer)
E           ........................-> Nested Loop Join (outer)
E         - ............................-> Table "T1" as "V A" Full Scan
E         + ............................-> Table "PUBLIC"."T1" as "PUBLIC"."V" "A" Full Scan
E           ............................-> Filter
E         - ................................-> Table "T2" as "V B" Full Scan
E         + ................................-> Table "PUBLIC"."T2" as "PUBLIC"."V" "B" Full Scan
E           ........................-> Filter
E         - ............................-> Table "T3" as "V C" Full Scan
E         + ............................-> Table "PUBLIC"."T3" as "PUBLIC"."V" "C" Full Scan
E           ....................-> Record Buffer (record length: NN)
E         - ........................-> Table "T4" as "D" Full Scan
E         + ........................-> Table "PUBLIC"."T4" as "D" Full Scan
E           ............-> Record Buffer (record length: NN)
E         - ................-> Table "T5" as "E" Full Scan
E         + ................-> Table "PUBLIC"."T5" as "E" Full Scan
E           1 1 1

tests/bugs/gh_8223_test.py:152: AssertionError
Full history of outcomes and elapsed time, ms:
NN SNAP_INFO CS_outcome SS_outcome CS_run_time SS_run_time CS_run_beg CS_run_end SS_run_beg SS_run_end
1 6.0.0.877 2025.06.26 8e38f F F 683 671 2025.06.27 01:43:48.677 2025.06.27 01:43:49.360 2025.06.26 23:11:43.647 2025.06.26 23:11:44.318
2 6.0.0.876 2025.06.25 b1bec F F 779 600 2025.06.26 01:47:39.272 2025.06.26 01:47:40.051 2025.06.25 23:13:39.481 2025.06.25 23:13:40.081
3 6.0.0.863 2025.06.24 c3c20 F F 823 604 2025.06.25 01:47:56.729 2025.06.25 01:47:57.552 2025.06.24 23:13:26.474 2025.06.24 23:13:27.078
4 6.0.0.858 2025.06.23 8d6f7 F F 733 618 2025.06.24 01:48:18.937 2025.06.24 01:48:19.670 2025.06.23 23:13:33.572 2025.06.23 23:13:34.190
5 6.0.0.849 2025.06.20 7b79c F F 663 373 2025.06.21 01:59:51.388 2025.06.21 01:59:52.051 2025.06.20 23:22:42.406 2025.06.20 23:22:42.779
6 6.0.0.848 2025.06.19 c483c F F 663 423 2025.06.20 01:56:12.186 2025.06.20 01:56:12.849 2025.06.19 23:19:29.858 2025.06.19 23:19:30.281
7 6.0.0.845 2025.06.18 22b12 F F 858 608 2025.06.19 02:04:51.349 2025.06.19 02:04:52.207 2025.06.18 23:22:43.751 2025.06.18 23:22:44.359
8 6.0.0.843 2025.06.16 995f4 F F 749 426 2025.06.18 02:03:06.775 2025.06.18 02:03:07.524 2025.06.17 23:24:30.862 2025.06.17 23:24:31.288
9 6.0.0.840 2025.06.14 29bca F F 733 733 2025.06.16 01:54:55.386 2025.06.16 01:54:56.119 2025.06.15 23:16:58.858 2025.06.15 23:16:59.591
10 6.0.0.838 2025.06.13 0e28a F F 758 684 2025.06.14 02:07:58.563 2025.06.14 02:07:59.321 2025.06.13 23:24:29.370 2025.06.13 23:24:30.054
11 6.0.0.835 2025.06.12 2cf29 F F 713 463 2025.06.13 02:07:53.543 2025.06.13 02:07:54.256 2025.06.12 23:28:35.627 2025.06.12 23:28:36.090
12 6.0.0.834 2025.06.11 e889f F F 701 640 2025.06.12 02:03:07.769 2025.06.12 02:03:08.470 2025.06.11 23:24:47.974 2025.06.11 23:24:48.614
13 6.0.0.800 2025.06.10 1f226 F F 721 548 2025.06.11 00:31:20.881 2025.06.11 00:31:21.602 2025.06.10 22:23:49.687 2025.06.10 22:23:50.235
14 6.0.0.799 2025.06.07 be644 F F 1172 698 2025.06.10 00:33:32.022 2025.06.10 00:33:33.194 2025.06.09 22:23:29.333 2025.06.09 22:23:30.031
15 6.0.0.797 2025.06.06 303e8 F F 1281 688 2025.06.07 00:36:46.610 2025.06.07 00:36:47.891 2025.06.06 22:23:02.915 2025.06.06 22:23:03.603
16 6.0.0.795 2025.05.29 7a71a F F 613 766 2025.06.06 00:31:10.370 2025.06.06 00:31:10.983 2025.06.05 22:22:09.271 2025.06.05 22:22:10.037
17 6.0.0.792 2025.05.28 b4327 F F 760 840 2025.05.29 00:45:26.227 2025.05.29 00:45:26.987 2025.05.28 22:25:18.385 2025.05.28 22:25:19.225
18 6.0.0.791 2025.05.27 02db8 F F 702 772 2025.05.28 00:43:30.577 2025.05.28 00:43:31.279 2025.05.27 22:24:21.443 2025.05.27 22:24:22.215
19 6.0.0.789 2025.05.21 64051 F F 1188 806 2025.05.25 00:35:47.682 2025.05.25 00:35:48.870 2025.05.24 22:23:26.827 2025.05.24 22:23:27.633
20 6.0.0.787 2025.05.20 230ad F F 746 894 2025.05.21 00:33:10.962 2025.05.21 00:33:11.708 2025.05.20 22:21:51.421 2025.05.20 22:21:52.315
21 6.0.0.783 2025.05.12 37320 F F 782 537 2025.05.19 12:05:53.437 2025.05.19 12:05:54.219 2025.05.19 10:10:03.877 2025.05.19 10:10:04.414
22 6.0.0.779 2025.05.11 136fa F F 688 658 2025.05.12 00:27:58.837 2025.05.12 00:27:59.525 2025.05.11 22:21:18.081 2025.05.11 22:21:18.739
23 6.0.0.778 2025.05.07 d735e F F 682 761 2025.05.08 00:30:03.096 2025.05.08 00:30:03.778 2025.05.07 22:20:00.107 2025.05.07 22:20:00.868
24 6.0.0.776 2025.05.06 007cd F F 723 585 2025.05.07 00:24:24.075 2025.05.07 00:24:24.798 2025.05.06 22:19:50.980 2025.05.06 22:19:51.565
25 6.0.0.770 2025.05.05 82c4a F F 712 765 2025.05.06 00:23:39.115 2025.05.06 00:23:39.827 2025.05.05 22:18:55.033 2025.05.05 22:18:55.798
26 6.0.0.767 2025.05.01 cdd29 F F 637 728 2025.05.02 00:20:24.278 2025.05.02 00:20:24.915 2025.05.01 22:18:10.323 2025.05.01 22:18:11.051
27 6.0.0.762 2025.04.30 5cb15 F F 745 388 2025.05.01 00:16:32.290 2025.05.01 00:16:33.035 2025.04.30 22:17:03.570 2025.04.30 22:17:03.958
28 6.0.0.755 2025.04.29 739c6 F F 1209 845 2025.04.30 00:20:10.270 2025.04.30 00:20:11.479 2025.04.29 22:18:13.291 2025.04.29 22:18:14.136
29 6.0.0.753 2025.04.27 29ab3 F F 1107 381 2025.04.28 00:21:41.751 2025.04.28 00:21:42.858 2025.04.27 22:17:33.914 2025.04.27 22:17:34.295
30 6.0.0.745 2025.04.21 78ad8 F F 713 610 2025.04.26 00:18:18.673 2025.04.26 00:18:19.386 2025.04.25 22:19:26.063 2025.04.25 22:19:26.673
31 6.0.0.744 2025.04.19 e883a F F 1204 639 2025.04.20 00:20:24.120 2025.04.20 00:20:25.324 2025.04.19 22:18:38.384 2025.04.19 22:18:39.023
32 6.0.0.742 2025.04.17 abc3b F F 709 730 2025.04.19 00:22:23.240 2025.04.19 00:22:23.949 2025.04.18 22:19:00.207 2025.04.18 22:19:00.937
33 6.0.0.737 2025.04.16 fe52b F F 1163 1202 2025.04.17 00:18:03.555 2025.04.17 00:18:04.718 2025.04.16 22:19:02.002 2025.04.16 22:19:03.204

Elapsed time, ms. Chart for last 33 runs:

Last commits information (all timestamps in UTC):