Bug #120262 CREATE VIEW materialization changes INTERSECT result cardinality for an aggregate branch
| Submitted: | 14 Apr 2:54 | Modified: | 16 Apr 20:55 |
|---|---|---|---|
| Reporter: | Peiyuan Liu | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
| Version: | 8.4.8 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[14 Apr 2:54]
Peiyuan Liu
[14 Apr 4:38]
Chaithra Marsur Gopala Reddy
Hi Peiyuan Liu, Thank you for the test case. Verified as described.
[16 Apr 20:55]
Roy Lyseng
Actually, this is not a bug. Float data are approximate, and there are no guarantees that equalities work. Also, using float precision and decimal may enforce different rounding and truncation operations. These are also deprecated features and there are better alternatives. Workaround; Use DECIMAL data type which has more exact arithmetic.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.