bugs.gh_7993_test. Unexpected results when using CASE WHEN with RIGHT JOIN

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 616 499 2025.07.02 13:36:35.286 2025.07.02 13:36:35.902 2025.07.02 12:21:16.830 2025.07.02 12:21:17.329
2 4.0.6.3184 2025.02.24 9388c P P 692 513 2025.02.25 13:49:03.653 2025.02.25 13:49:04.345 2025.02.25 12:29:44.498 2025.02.25 12:29:45.011
3 4.0.6.3183 2025.02.16 cf6ca P P 711 501 2025.02.17 07:43:16.220 2025.02.17 07:43:16.931 2025.02.17 06:23:18.146 2025.02.17 06:23:18.647
4 4.0.6.3169 2024.12.13 42cc1 P P 715 501 2025.02.16 04:40:23.627 2025.02.16 04:40:24.342 2025.02.16 03:22:36.424 2025.02.16 03:22:36.925
5 4.0.6.3169 2024.12.08 50eb6 P P 533 408 2024.12.12 18:57:18.882 2024.12.12 18:57:19.415 2024.12.12 17:55:02.768 2024.12.12 17:55:03.176
6 4.0.6.3168 2024.11.28 48149 P P 533 377 2024.12.06 03:18:11.479 2024.12.06 03:18:12.012 2024.12.06 02:17:37.486 2024.12.06 02:17:37.863
7 4.0.6.3163 2024.10.16 2bb10 P P 551 411 2024.11.27 13:42:51.857 2024.11.27 13:42:52.408 2024.11.27 10:41:19.266 2024.11.27 10:41:19.677
8 4.0.6.3163 2024.10.15 f387e P P 539 352 2024.10.16 04:48:11.786 2024.10.16 04:48:12.325 2024.10.16 03:50:36.652 2024.10.16 03:50:37.004
9 4.0.6.3147 2024.08.31 4655b P P 538 450 2024.09.30 12:04:26.352 2024.09.30 12:04:26.890 2024.09.30 11:00:04.830 2024.09.30 11:00:05.280
10 4.0.6.3140 2024.08.16 1dd8b P P 1062 815 2024.08.31 18:36:31.491 2024.08.31 18:36:32.553 2024.08.31 16:40:48.824 2024.08.31 16:40:49.639
11 4.0.6.3140 2024.08.09 34747 P P 674 520 2024.08.16 11:09:17.372 2024.08.16 11:09:18.046 2024.08.16 09:59:17.319 2024.08.16 09:59:17.839
12 4.0.5.3110 2024.07.30 c6527 P P 672 574 2024.08.09 10:59:48.172 2024.08.09 10:59:48.844 2024.08.09 09:49:59.012 2024.08.09 09:49:59.586
13 4.0.5.3109 2024.06.11 6addf P P 524 349 2024.07.30 09:18:15.105 2024.07.30 09:18:15.629 2024.07.30 08:17:09.280 2024.07.30 08:17:09.629
14 4.0.5.3097 2024.05.09 27fa6 P P 653 457 2024.05.14 10:02:51.646 2024.05.14 10:02:52.299 2024.05.14 09:00:29.939 2024.05.14 09:00:30.396
15 4.0.5.3091 2024.04.29 bd0aa P P 428 287 2024.05.08 21:04:18.955 2024.05.08 21:04:19.383 2024.05.08 20:11:02.094 2024.05.08 20:11:02.381
16 4.0.5.3089 2024.04.25 4b9c7 P P 410 284 2024.04.27 15:48:52.057 2024.04.27 15:48:52.467 2024.04.27 14:54:50.084 2024.04.27 14:54:50.368

Elapsed time, ms. Chart for last 16 runs:

Last commits information (all timestamps in UTC):