bugs.core_4360_test. SELECT from derived table which contains GROUP BY on field with literal value returns wrong result

Show cross-report outcomes.
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 3.0.13.33809 2025.05.14 6638e P P 569 321 2025.06.30 14:31:12.661 2025.06.30 14:31:13.230 2025.06.30 13:58:06.241 2025.06.30 13:58:06.562
2 3.0.13.33809 2025.05.06 28ad0 P P 567 324 2025.05.14 08:10:42.859 2025.05.14 08:10:43.426 2025.05.14 07:36:12.069 2025.05.14 07:36:12.393
3 3.0.13.33808 2025.04.25 28426 P P 569 316 2025.05.06 13:21:37.960 2025.05.06 13:21:38.529 2025.05.06 12:48:54.250 2025.05.06 12:48:54.566
4 3.0.13.33803 2025.04.23 307b8 P P 582 319 2025.04.25 13:30:12.216 2025.04.25 13:30:12.798 2025.04.25 12:57:19.537 2025.04.25 12:57:19.856
5 3.0.13.33803 2025.03.25 ea22a P P 576 320 2025.04.20 08:01:33.886 2025.04.20 08:01:34.462 2025.04.20 07:06:56.388 2025.04.20 07:06:56.708
6 3.0.13.33803 2025.02.25 08ebd P P 613 341 2025.03.25 10:16:54.148 2025.03.25 10:16:54.761 2025.03.25 09:21:09.457 2025.03.25 09:21:09.798
7 3.0.13.33796 2025.01.29 0ab85 P P 579 343 2025.02.25 12:07:43.764 2025.02.25 12:07:44.343 2025.02.25 11:34:34.601 2025.02.25 11:34:34.944
8 3.0.13.33796 2025.01.14 99b3b P P 566 321 2025.01.24 11:12:20.090 2025.01.24 11:12:20.656 2025.01.24 10:39:21.333 2025.01.24 10:39:21.654
9 3.0.13.33795 2024.12.13 fbbd9 P P 579 319 2025.01.01 12:23:20.564 2025.01.01 12:23:21.143 2025.01.01 11:49:54.167 2025.01.01 11:49:54.486
10 3.0.13.33795 2024.11.24 b8847 P P 571 318 2024.12.11 12:21:02.907 2024.12.11 12:21:03.478 2024.12.11 11:47:50.927 2024.12.11 11:47:51.245
11 3.0.13.33794 2024.10.15 abe09 P P 579 334 2024.11.22 11:57:26.634 2024.11.22 11:57:27.213 2024.11.22 11:24:03.635 2024.11.22 11:24:03.969
12 3.0.13.33793 2024.10.14 f831a P P 580 320 2024.10.15 12:25:02.848 2024.10.15 12:25:03.428 2024.10.15 11:51:33.252 2024.10.15 11:51:33.572
13 3.0.13.33793 2024.10.04 82ccc P P 574 323 2024.10.12 12:24:02.462 2024.10.12 12:24:03.036 2024.10.12 11:50:49.720 2024.10.12 11:50:50.043
14 3.0.13.33792 2024.08.31 d8791 P P 591 321 2024.10.03 12:32:21.008 2024.10.03 12:32:21.599 2024.10.03 11:58:08.829 2024.10.03 11:58:09.150
15 3.0.13.33787 2024.08.23 8ee81 P P 621 386 2024.09.01 12:42:09.908 2024.09.01 12:42:10.529 2024.09.01 12:04:59.493 2024.09.01 12:04:59.879
16 3.0.13.33787 2024.08.09 df740 P P 680 400 2024.08.23 12:37:41.649 2024.08.23 12:37:42.329 2024.08.23 12:00:52.290 2024.08.23 12:00:52.690
17 3.0.12.33746 2024.07.15 11dd4 P P 658 393 2024.08.09 11:57:53.581 2024.08.09 11:57:54.239 2024.08.09 11:21:28.319 2024.08.09 11:21:28.712
18 3.0.12.33746 2024.06.11 8a5eb P P 481 254 2024.07.15 10:51:59.750 2024.07.15 10:52:00.231 2024.07.15 10:20:10.872 2024.07.15 10:20:11.126
19 3.0.12.33745 2024.05.21 301a7 P P 453 188 2024.05.25 07:50:03.589 2024.05.25 07:50:04.042 2024.05.25 07:21:02.616 2024.05.25 07:21:02.804
20 3.0.12.33745 2024.05.09 9cf37 P P 468 187 2024.05.21 07:50:23.563 2024.05.21 07:50:24.031 2024.05.21 07:21:08.547 2024.05.21 07:21:08.734
21 3.0.12.33744 2024.04.20 af6b2 P P 485 204 2024.05.11 07:46:52.532 2024.05.11 07:46:53.017 2024.05.11 07:18:31.469 2024.05.11 07:18:31.673
22 3.0.12.33740 2024.04.06 c6cdd P P 438 187 2024.04.21 02:01:20.977 2024.04.21 02:01:21.415 2024.04.21 01:33:16.122 2024.04.21 01:33:16.309
23 3.0.12.33726 2024.03.29 1fac6 P P 422 187 2024.04.05 06:57:05.965 2024.04.05 06:57:06.387 2024.04.05 06:29:29.741 2024.04.05 06:29:29.928
24 3.0.12.33726 2024.03.11 456ca P P 390 187 2024.03.29 12:38:22.378 2024.03.29 12:38:22.768 2024.03.29 12:11:47.865 2024.03.29 12:11:48.052

Elapsed time, ms. Chart for last 24 runs:

Last commits information (all timestamps in UTC):