[MCOL-4547] Regression: Constant decimal math not working Created: 2021-02-19 Updated: 2021-06-11 Resolved: 2021-06-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MDB Plugin |
| Affects Version/s: | 6.1.1 |
| Fix Version/s: | 6.1.1 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Description |
|
See working_tpch1_compareLogOnly/misc/bug571.sql
result_3 should be 10520989143843837.6, not 0.0 This is a regression since 5.5 result_3 is a bunch of constants with math. In 5.5, because it's a constant, the math is done in the Server and the answer inserted somehow into the result. I assume this is still how it is supposed to work, but it doesn't anymore. I guess something to do with decimal(38) is confusing it. |
| Comments |
| Comment by David Hall (Inactive) [ 2021-03-24 ] | ||||||||||||||||||||||||||||
|
Here's an easier reproduction:
Interestingly, if you take the final *1 off, you get a correct answer:
Integers work:
Smaller decimal numbers also work:
| ||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2021-03-24 ] | ||||||||||||||||||||||||||||
|
Where t2 is InnoDB, it works:
| ||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2021-05-18 ] | ||||||||||||||||||||||||||||
|
develop-5 as of 2021-05-18 seems to work fine:
| ||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2021-06-10 ] | ||||||||||||||||||||||||||||
|
develop as of 2021-06-10 also seems to work fine. | ||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2021-06-10 ] | ||||||||||||||||||||||||||||
|
I believe this may have been caused by something in server that has been fixed. No PR from us. | ||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2021-06-11 ] | ||||||||||||||||||||||||||||
|
Build verified: 6.1.1 ( Drone #2573) |