Bug #115597 | Window function applied to BIT column produces non-BIT type | ||
---|---|---|---|
Submitted: | 15 Jul 2024 16:46 | Modified: | 14 Nov 2024 17:45 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 9.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[15 Jul 2024 16:46]
Guilhem Bichot
[15 Jul 2024 17:53]
MySQL Verification Team
Salut Monsieur Bichot, Merci pour votre rapport. We managed to repeat your report: +---------+ | hex(c0) | +---------+ | 41 | | 42 | +---------+ +------+ | c0 | +------+ | A | | B | +------+ +------+---+-----------------+ | c0 | : | lead(c0) over() | +------+---+-----------------+ | A | : | 66 | | B | : | NULL | +------+---+-----------------+ +------+---+------------------------+ | c0 | : | first_value(c0) over() | +------+---+------------------------+ | A | : | 65 | | B | : | 65 | +------+---+------------------------+ +------+---+----------------+ | c0 | : | max(c0) over() | +------+---+----------------+ | A | : | 66 | | B | : | 66 | +------+---+----------------+ +---------+ | max(c0) | +---------+ | B | +---------+ +------+ | c0 | +------+ | 65 | | 66 | +------+ +------+ | c0 | +------+ | A | | B | +------+ +-------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+-------+ | c0 | int unsigned | YES | | NULL | | +-------+--------------+------+-----+---------+-------+ This is now a verified bug for the version 9.0.
[1 Nov 2024 11:20]
MySQL Verification Team
This bug is the original bug for the following report: https://bugs.mysql.com/bug.php?id=116523
[14 Nov 2024 17:21]
Jon Stephens
BUG#116523 is a duplicate of this bug.
[14 Nov 2024 17:45]
Jon Stephens
Documented fix as follows in the MySQL 9.2.0 changelog: Window functions having BIT values as arguments did not return BIT. Closed.
[15 Nov 2024 10:45]
MySQL Verification Team
Thank you , Jon.