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
    ....-> First N Records
    ........-> Filter
    ............-> Hash Join (semi)
    ................-> Refetch
    ....................-> Sort (record length: NN, key length: NN)
  - ........................-> Table "DEPARTMENT" as "D" Full Scan
  + ........................-> Table "PUBLIC"."DEPARTMENT" as "D" Full Scan
    ................-> Record Buffer (record length: NN)
  - ....................-> Table "EMPLOYEE" as "E" Full Scan
  + ....................-> Table "PUBLIC"."EMPLOYEE" as "E" Full Scan
    2 d2

LOG DETAILS:

2025-07-01 06:36:21.894
2025-07-01 06:36:21.894 act = <firebird.qa.plugin.Action object at [hex]>
2025-07-01 06:36:21.894 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-07-01 06:36:21.894
2025-07-01 06:36:21.894     @pytest.mark.version('>=5.0.2')
2025-07-01 06:36:21.894     def test_1(act: Action, capsys):
2025-07-01 06:36:21.894
2025-07-01 06:36:21.894         test_sql = """
2025-07-01 06:36:21.894             select d.dept_no, d.dept_name from department d
2025-07-01 06:36:21.894             where exists(select * from employee e where e.dept_no = d.dept_no)
2025-07-01 06:36:21.894             order by dept_no rows 1
2025-07-01 06:36:21.894         """
2025-07-01 06:36:21.894
2025-07-01 06:36:21.894         srv_cfg = driver_config.register_server(name = f'srv_cfg_8225', config = '')
2025-07-01 06:36:21.895         db_cfg_name = f'db_cfg_8225'
2025-07-01 06:36:21.895         db_cfg_object = driver_config.register_database(name = db_cfg_name)
2025-07-01 06:36:21.895         db_cfg_object.server.value = srv_cfg.name
2025-07-01 06:36:21.895         db_cfg_object.database.value = str(act.db.db_path)
2025-07-01 06:36:21.895         if act.is_version('<6'):
2025-07-01 06:36:21.895             db_cfg_object.config.value = f"""
2025-07-01 06:36:21.895                 SubQueryConversion = true
2025-07-01 06:36:21.895             """
2025-07-01 06:36:21.895
2025-07-01 06:36:21.895         with connect(db_cfg_name, user = act.db.user, password = act.db.password) as con:
2025-07-01 06:36:21.895             cur = con.cursor()
2025-07-01 06:36:21.895             ps, rs = None, None
2025-07-01 06:36:21.895             try:
2025-07-01 06:36:21.895                 ps = cur.prepare(test_sql)
2025-07-01 06:36:21.895                 print( '\n'.join([replace_leading(s) for s in ps.detailed_plan.split('\n')]) )
2025-07-01 06:36:21.895
2025-07-01 06:36:21.895                 # ::: NB ::: 'ps' returns data, i.e. this is SELECTABLE expression.
2025-07-01 06:36:21.895                 # We have to store result of cur.execute(<psInstance>) in order to
2025-07-01 06:36:21.895                 # close it explicitly.
2025-07-01 06:36:21.895                 # Otherwise AV can occur during Python garbage collection and this
2025-07-01 06:36:21.895                 # causes pytest to hang on its final point.
2025-07-01 06:36:21.896                 # Explained by hvlad, email 26.10.24 17:42
2025-07-01 06:36:21.896                 rs = cur.execute(ps)
2025-07-01 06:36:21.896                 for r in rs:
2025-07-01 06:36:21.896                     print(r[0],r[1])
2025-07-01 06:36:21.896
2025-07-01 06:36:21.896             except DatabaseError as e:
2025-07-01 06:36:21.896                 print(e.__str__())
2025-07-01 06:36:21.896                 print(e.gds_codes)
2025-07-01 06:36:21.896             finally:
2025-07-01 06:36:21.896                 if rs:
2025-07-01 06:36:21.896                     rs.close() # <<< EXPLICITLY CLOSING CURSOR RESULTS
2025-07-01 06:36:21.896                 if ps:
2025-07-01 06:36:21.896                     ps.free()
2025-07-01 06:36:21.896
2025-07-01 06:36:21.896             con.rollback()
2025-07-01 06:36:21.896
2025-07-01 06:36:21.896         act.expected_stdout = f"""
2025-07-01 06:36:21.896             Select Expression
2025-07-01 06:36:21.896             ....-> First N Records
2025-07-01 06:36:21.896             ........-> Filter
2025-07-01 06:36:21.896             ............-> Hash Join (semi)
2025-07-01 06:36:21.896             ................-> Refetch
2025-07-01 06:36:21.897             ....................-> Sort (record length: 28, key length: 8)
2025-07-01 06:36:21.897             ........................-> Table "DEPARTMENT" as "D" Full Scan
2025-07-01 06:36:21.897             ................-> Record Buffer (record length: 25)
2025-07-01 06:36:21.897             ....................-> Table "EMPLOYEE" as "E" Full Scan
2025-07-01 06:36:21.897             2 d2
2025-07-01 06:36:21.897         """
2025-07-01 06:36:21.897         act.stdout = capsys.readouterr().out
2025-07-01 06:36:21.897 >       assert act.clean_stdout == act.clean_expected_stdout
2025-07-01 06:36:21.897 E       assert
2025-07-01 06:36:21.897 E           Select Expression
2025-07-01 06:36:21.897 E           ....-> First N Records
2025-07-01 06:36:21.897 E           ........-> Filter
2025-07-01 06:36:21.897 E           ............-> Hash Join (semi)
2025-07-01 06:36:21.897 E           ................-> Refetch
2025-07-01 06:36:21.897 E           ....................-> Sort (record length: NN, key length: NN)
2025-07-01 06:36:21.897 E         - ........................-> Table "DEPARTMENT" as "D" Full Scan
2025-07-01 06:36:21.897 E         + ........................-> Table "PUBLIC"."DEPARTMENT" as "D" Full Scan
2025-07-01 06:36:21.897 E           ................-> Record Buffer (record length: NN)
2025-07-01 06:36:21.897 E         - ....................-> Table "EMPLOYEE" as "E" Full Scan
2025-07-01 06:36:21.897 E         + ....................-> Table "PUBLIC"."EMPLOYEE" as "E" Full Scan
2025-07-01 06:36:21.898 E           2 d2
2025-07-01 06:36:21.898
2025-07-01 06:36:21.898 tests\bugs\gh_8225_test.py:151: AssertionError
2025-07-01 06:36:21.898 ---------------------------- Captured stdout setup ----------------------------
2025-07-01 06:36:21.898 Creating db: localhost:H:\QA\temp\qa2024.tmp\fbqa\test_11734\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 d.dept_no, d.dept_name from department d
            where exists(select * from employee e where e.dept_no = d.dept_no)
            order by dept_no rows 1
        """
    
        srv_cfg = driver_config.register_server(name = f'srv_cfg_8225', config = '')
        db_cfg_name = f'db_cfg_8225'
        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:
            cur = con.cursor()
            ps, rs = None, None
            try:
                ps = cur.prepare(test_sql)
                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])
    
            except DatabaseError as e:
                print(e.__str__())
                print(e.gds_codes)
            finally:
                if rs:
                    rs.close() # <<< EXPLICITLY CLOSING CURSOR RESULTS
                if ps:
                    ps.free()
    
            con.rollback()
    
        act.expected_stdout = f"""
            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
        """
        act.stdout = capsys.readouterr().out
>       assert act.clean_stdout == act.clean_expected_stdout
E       assert   
E           Select Expression
E           ....-> First N Records
E           ........-> Filter
E           ............-> Hash Join (semi)
E           ................-> Refetch
E           ....................-> Sort (record length: NN, key length: NN)
E         - ........................-> Table "DEPARTMENT" as "D" Full Scan
E         + ........................-> Table "PUBLIC"."DEPARTMENT" as "D" Full Scan
E           ................-> Record Buffer (record length: NN)
E         - ....................-> Table "EMPLOYEE" as "E" Full Scan
E         + ....................-> Table "PUBLIC"."EMPLOYEE" as "E" Full Scan
E           2 d2

tests\bugs\gh_8225_test.py:151: 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.881 2025.06.27 7035d F F 698 447 2025.07.01 03:12:00.814 2025.07.01 03:12:01.512 2025.07.01 01:30:10.526 2025.07.01 01:30:10.973
2 6.0.0.877 2025.06.26 8e38f F F 678 451 2025.06.27 03:13:22.412 2025.06.27 03:13:23.090 2025.06.27 01:30:55.984 2025.06.27 01:30:56.435
3 6.0.0.876 2025.06.25 b1bec F F 666 456 2025.06.26 03:18:40.865 2025.06.26 03:18:41.531 2025.06.26 01:36:34.891 2025.06.26 01:36:35.347
4 6.0.0.863 2025.06.24 c3c20 F F 672 462 2025.06.25 08:02:50.321 2025.06.25 08:02:50.993 2025.06.25 01:30:36.365 2025.06.25 01:30:36.827
5 6.0.0.858 2025.06.24 cbbbf F F 671 453 2025.06.24 17:45:22.588 2025.06.24 17:45:23.259 2025.06.24 16:02:34.169 2025.06.24 16:02:34.622
6 6.0.0.858 2025.06.23 d377c F F 679 457 2025.06.24 08:57:24.251 2025.06.24 08:57:24.930 2025.06.24 07:14:56.557 2025.06.24 07:14:57.014
7 6.0.0.854 2025.06.23 10b58 F F 659 441 2025.06.23 15:38:16.393 2025.06.23 15:38:17.052 2025.06.23 13:54:29.289 2025.06.23 13:54:29.730
8 6.0.0.849 2025.06.20 7b79c F F 650 451 2025.06.21 03:16:35.200 2025.06.21 03:16:35.850 2025.06.21 01:31:08.856 2025.06.21 01:31:09.307
9 6.0.0.848 2025.06.19 c483c F F 664 458 2025.06.20 03:16:12.759 2025.06.20 03:16:13.423 2025.06.20 01:30:54.149 2025.06.20 01:30:54.607
10 6.0.0.845 2025.06.18 20191 F F 655 460 2025.06.19 03:15:50.813 2025.06.19 03:15:51.468 2025.06.19 01:30:41.571 2025.06.19 01:30:42.031
11 6.0.0.843 2025.06.16 995f4 F F 654 447 2025.06.18 03:15:38.116 2025.06.18 03:15:38.770 2025.06.18 01:30:23.730 2025.06.18 01:30:24.177
12 6.0.0.840 2025.06.14 29bca F F 663 466 2025.06.15 03:24:08.225 2025.06.15 03:24:08.888 2025.06.15 01:33:26.990 2025.06.15 01:33:27.456
13 6.0.0.838 2025.06.13 0e28a F F 664 459 2025.06.14 03:21:51.836 2025.06.14 03:21:52.500 2025.06.14 01:31:46.236 2025.06.14 01:31:46.695
14 6.0.0.834 2025.06.11 e889f F F 683 449 2025.06.12 03:19:23.908 2025.06.12 03:19:24.591 2025.06.12 01:32:17.607 2025.06.12 01:32:18.056
15 6.0.0.800 2025.06.10 1f226 P P 626 400 2025.06.11 02:04:22.061 2025.06.11 02:04:22.687 2025.06.11 00:55:33.379 2025.06.11 00:55:33.779
16 6.0.0.799 2025.06.07 be644 P P 641 406 2025.06.10 02:04:00.613 2025.06.10 02:04:01.254 2025.06.10 00:55:10.557 2025.06.10 00:55:10.963
17 6.0.0.797 2025.06.06 303e8 P P 608 404 2025.06.07 02:02:49.279 2025.06.07 02:02:49.887 2025.06.07 00:54:58.629 2025.06.07 00:54:59.033
18 6.0.0.795 2025.05.29 7a71a P P 610 407 2025.06.06 02:02:39.619 2025.06.06 02:02:40.229 2025.06.06 00:54:56.599 2025.06.06 00:54:57.006
19 6.0.0.792 2025.05.28 ee5a8 P P 611 397 2025.05.29 02:01:45.490 2025.05.29 02:01:46.101 2025.05.29 00:55:02.936 2025.05.29 00:55:03.333
20 6.0.0.791 2025.05.27 02db8 P P 604 413 2025.05.28 02:02:14.436 2025.05.28 02:02:15.040 2025.05.28 00:54:45.845 2025.05.28 00:54:46.258
21 6.0.0.789 2025.05.21 64051 P P 602 416 2025.05.25 02:01:57.412 2025.05.25 02:01:58.014 2025.05.25 00:55:11.399 2025.05.25 00:55:11.815
22 6.0.0.787 2025.05.20 230ad P P 619 404 2025.05.21 02:00:53.468 2025.05.21 02:00:54.087 2025.05.21 00:54:20.857 2025.05.21 00:54:21.261
23 6.0.0.783 2025.05.12 37320 P P 598 422 2025.05.19 02:00:39.962 2025.05.19 02:00:40.560 2025.05.19 00:54:27.995 2025.05.19 00:54:28.417
24 6.0.0.779 2025.05.11 136fa P P 611 412 2025.05.12 02:02:48.226 2025.05.12 02:02:48.837 2025.05.12 00:55:05.687 2025.05.12 00:55:06.099
25 6.0.0.778 2025.05.07 d735e P P 623 407 2025.05.11 02:02:12.802 2025.05.11 02:02:13.425 2025.05.11 00:55:19.400 2025.05.11 00:55:19.807
26 6.0.0.776 2025.05.06 007cd P P 621 416 2025.05.07 02:01:26.932 2025.05.07 02:01:27.553 2025.05.07 00:54:56.805 2025.05.07 00:54:57.221
27 6.0.0.770 2025.05.05 82c4a P P 600 405 2025.05.06 02:01:45.629 2025.05.06 02:01:46.229 2025.05.06 00:55:03.306 2025.05.06 00:55:03.711
28 6.0.0.767 2025.05.01 cdd29 P P 610 396 2025.05.02 02:02:21.885 2025.05.02 02:02:22.495 2025.05.02 00:55:53.758 2025.05.02 00:55:54.154
29 6.0.0.762 2025.04.30 5cb15 P P 663 412 2025.05.01 02:00:48.696 2025.05.01 02:00:49.359 2025.05.01 00:55:14.954 2025.05.01 00:55:15.366
30 6.0.0.755 2025.04.29 739c6 P P 635 407 2025.04.30 02:01:01.931 2025.04.30 02:01:02.566 2025.04.30 00:54:57.418 2025.04.30 00:54:57.825
31 6.0.0.753 2025.04.27 29ab3 P P 597 432 2025.04.29 02:01:12.385 2025.04.29 02:01:12.982 2025.04.29 00:55:05.670 2025.04.29 00:55:06.102
32 6.0.0.745 2025.04.21 78ad8 P P 626 410 2025.04.26 02:02:38.047 2025.04.26 02:02:38.673 2025.04.26 00:55:22.388 2025.04.26 00:55:22.798
33 6.0.0.744 2025.04.19 e883a P P 611 433 2025.04.20 02:02:04.894 2025.04.20 02:02:05.505 2025.04.20 00:55:15.118 2025.04.20 00:55:15.551
34 6.0.0.742 2025.04.17 abc3b P P 617 414 2025.04.19 02:01:32.938 2025.04.19 02:01:33.555 2025.04.19 00:54:49.614 2025.04.19 00:54:50.028
35 6.0.0.737 2025.04.16 fe52b P P 602 413 2025.04.17 02:01:56.711 2025.04.17 02:01:57.313 2025.04.17 00:55:03.090 2025.04.17 00:55:03.503

Elapsed time, ms. Chart for last 35 runs:

Last commits information (all timestamps in UTC):