| 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.
