bugs.core_4322_test. Engine crashes when use aggregate or window functions in recursive query (instead of producing compiling error)

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 4.0.6.3189 2025.02.25 1a1a5 P P 579 416 2025.06.26 14:12:42.164 2025.06.26 14:12:42.743 2025.06.26 13:07:14.523 2025.06.26 13:07:14.939
2 4.0.6.3184 2025.02.24 9388c P P 1838 1079 2025.02.25 13:07:57.158 2025.02.25 13:07:58.996 2025.02.25 11:53:21.968 2025.02.25 11:53:23.047
3 4.0.6.3183 2025.02.16 cf6ca P P 1865 1083 2025.02.17 07:01:23.711 2025.02.17 07:01:25.576 2025.02.17 05:46:20.570 2025.02.17 05:46:21.653
4 4.0.6.3169 2024.12.13 42cc1 P P 1900 1062 2025.02.16 03:59:31.187 2025.02.16 03:59:33.087 2025.02.16 02:46:57.628 2025.02.16 02:46:58.690
5 4.0.6.3169 2024.12.08 50eb6 P P 1448 823 2024.12.12 18:25:18.981 2024.12.12 18:25:20.429 2024.12.12 17:27:01.402 2024.12.12 17:27:02.225
6 4.0.6.3168 2024.11.28 48149 P P 1310 823 2024.12.06 02:47:09.977 2024.12.06 02:47:11.287 2024.12.06 01:50:24.283 2024.12.06 01:50:25.106
7 4.0.6.3163 2024.10.16 2bb10 P P 1327 813 2024.11.27 11:10:33.831 2024.11.27 11:10:35.158 2024.11.27 10:13:03.137 2024.11.27 10:13:03.950
8 4.0.6.3163 2024.10.15 f387e P P 1366 794 2024.10.16 04:17:59.733 2024.10.16 04:18:01.099 2024.10.16 03:23:38.437 2024.10.16 03:23:39.231
9 4.0.6.3147 2024.08.31 4655b P P 1467 848 2024.09.30 11:30:35.542 2024.09.30 11:30:37.009 2024.09.30 10:30:23.660 2024.09.30 10:30:24.508
10 4.0.6.3140 2024.08.16 1dd8b P P 2474 1537 2024.08.31 17:32:43.829 2024.08.31 17:32:46.303 2024.08.31 15:47:49.799 2024.08.31 15:47:51.336
11 4.0.6.3140 2024.08.09 34747 P P 1551 1146 2024.08.16 10:32:58.020 2024.08.16 10:32:59.571 2024.08.16 09:26:59.139 2024.08.16 09:27:00.285
12 4.0.5.3110 2024.07.30 c6527 P P 2173 1068 2024.08.09 10:24:02.272 2024.08.09 10:24:04.445 2024.08.09 09:18:08.880 2024.08.09 09:18:09.948
13 4.0.5.3109 2024.06.11 6addf P P 1457 904 2024.07.30 08:45:17.232 2024.07.30 08:45:18.689 2024.07.30 07:47:43.418 2024.07.30 07:47:44.322
14 4.0.5.3097 2024.05.09 27fa6 P P 1469 844 2024.05.14 09:30:51.107 2024.05.14 09:30:52.576 2024.05.14 08:33:12.272 2024.05.14 08:33:13.116
15 4.0.5.3091 2024.04.29 bd0aa P P 1106 681 2024.05.08 20:36:16.293 2024.05.08 20:36:17.399 2024.05.08 19:45:58.071 2024.05.08 19:45:58.752
16 4.0.5.3089 2024.04.25 4b9c7 P P 1260 740 2024.04.27 15:20:11.553 2024.04.27 15:20:12.813 2024.04.27 14:29:25.833 2024.04.27 14:29:26.573

Elapsed time, ms. Chart for last 16 runs:

Last commits information (all timestamps in UTC):