mariadb/mysql-test/suite
bsrikanth-mariadb 94fd32f698 MDEV-31744: Assertion with COUNT(*) OVER (ORDER BY const RANGE BETWEEN...)
When the query uses several Window Functions:
SELECT
WIN_FUNC1() OVER (ORDER BY 'const', col1),
WIN_FUNC2() OVER (ORDER BY col1 RANGE BETWEEN CURRENT ROW
AND 5 FOLLOWING)
compare_window_funcs_by_window_specs() will try to get the Window Specs to
reuse the ORDER BY lists. If the lists produce the same order (like above)
Window Spec of the WIN_FUNC2 will reuse the ORDER BY list of WIN_FUNC1.

However, WIN_FUNC2 has a RANGE-type window frame. It expects to get
ORDER BY list with one element, which it will use to compute frame bounds.
Proving it with ORDER BY list from WIN_FUNC1 ('const', col1) was caused an
assertion failure

The fix is to:

use the original ORDER BY list when constructing RANGE-type frames
fix an apparent typo bug in compare_window_funcs_by_window_specs():
assignment
win_spec1->save_order_list= win_spec2->order_list;
saved the order list from the wrong spec. Instead, take one from win_spec1.
2025-09-24 13:02:55 +05:30
..
archive Merge branch '10.6' into '10.11' 2025-04-16 03:34:40 +02:00
atomic Merge branch '10.6' into 10.11 2025-04-26 10:47:03 +02:00
binlog MDEV-37356 Annotate_rows written in a 'random' position 2025-09-04 18:08:39 +03:00
binlog_encryption cleanup: select ... into tests 2025-07-17 09:18:18 +02:00
client
compat Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
csv Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
encryption MDEV-31744: Assertion with COUNT(*) OVER (ORDER BY const RANGE BETWEEN...) 2025-09-24 13:02:55 +05:30
engines MDEV-37375 engines/iuds suite fails with ps-protocol 2025-09-15 11:00:02 +02:00
federated cleanup: select ... into tests 2025-07-17 09:18:18 +02:00
funcs_1 cleanup: select ... into tests 2025-07-17 09:18:18 +02:00
funcs_2 Merge 10.5 into 10.6 2025-03-26 17:09:57 +02:00
galera MDEV-37373 : InnoDB partition table disallow local GTIDs in galera 2025-09-23 13:17:00 +03:00
galera_3nodes Merge branch '10.6' into '10.11' 2025-08-14 22:10:45 +02:00
galera_3nodes_sr galera mtr tests: synchronization between branches and editions 2025-04-02 04:50:11 +02:00
galera_sr galera tests: synchronization between versions and editions 2025-08-14 17:04:40 +02:00
gcol cleanup: select ... into tests 2025-07-17 09:18:18 +02:00
handler Merge branch '10.5' into 10.6 2024-12-17 11:06:09 +11:00
heap Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
innodb MDEV-37412: Better test case 2025-09-15 08:44:26 +03:00
innodb_fts Merge branch '10.6' into 10.11 2025-07-28 18:06:31 +02:00
innodb_gis Merge branch '10.6' into 10.11 2025-06-04 14:09:23 +02:00
innodb_i_s
innodb_zip Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
jp
json MDEV-35614: JSON_UNQUOTE doesn't work with emojis 2025-04-19 08:55:05 +10:00
large_tests
maria Merge branch '10.6' into 10.11 2025-09-12 13:08:40 +02:00
mariabackup MDEV-37520 Failure to detect corruption during backups of Aria table 2025-09-04 18:08:39 +03:00
mtr/t Remove dates from all rdiff files 2025-01-05 16:40:11 +02:00
mtr2
multi_source MDEV-7611: create multi_source.mariadb-dump_slave 2025-07-10 18:31:36 -06:00
optimizer_unfixed_bugs
parts MDEV-37328 Assertion failure in make_empty_rec upon CONVERT PARTITION 2025-07-28 18:06:11 +02:00
perfschema MDEV-37705 main.lotofstack /main.sp-error fails in MSAN+Debug 2025-09-24 09:08:16 +10:00
perfschema_stress
period Merge branch '10.6' into 10.11 2025-09-12 13:08:40 +02:00
plugins Reproducible test case for MDEV-37434 2025-09-18 18:01:33 +02:00
roles Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
rpl Cherry-pick of 'mariadb-test: wait on disconnect' from 12.1 2025-09-10 13:57:07 -04:00
s3 Merge branch '10.6' into 10.11 2025-06-04 14:09:23 +02:00
sql_sequence Merge branch '10.6' into 10.11 2025-07-28 18:06:31 +02:00
storage_engine
stress MDEV-34453 Trying to read 16384 bytes at 70368744161280 outside the bounds of the file: ./ibdata1 2024-09-20 20:26:43 +05:30
sys_vars Fixed typos 2025-09-04 18:08:39 +03:00
sysschema MDEV-37083: Fixed type mismatch in sys views 2025-07-25 17:02:59 +05:30
unit
vcol Improvements for myisamchk 2025-09-04 18:08:39 +03:00
versioning MDEV-15990 versioning: don't allow changes in the past 2025-08-04 17:44:05 +02:00
wsrep galera mtr tests: post-merge correction for variables_debug.result 2025-08-14 04:17:56 +02:00