[MCOL-4116] working_dml/subupd003.sql bad results Created: 2020-06-25 Updated: 2020-07-14 Resolved: 2020-07-10 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 1.2, 1.5.2 |
| Fix Version/s: | 1.5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hall (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2020-7 |
| Description |
|
In working_dml/misc/subupd003.sql, we find the following query: set autocommit=0; // And to see what happened: In Columnstore 1.5 when run from clent, we get: In columnstore 1.2 and in 1.5 when run in the test suite, we get:
-----
----- This is incorrect. The correct answer is (gleaned from a reference innodb):
-----
----- |
| Comments |
| Comment by David Hall (Inactive) [ 2020-06-25 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Be sure to correct the ref file when fixed. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2020-07-06 ] | ||||||||||||||||||||||||||||||||||||||||||
|
we_dmlcommandproc.cpp WE_DMLCommandProc::processUpdate() doesn't handle long double, causing logic to fall to default and treat the value as an int64. Simply add a case statement for CalpontSystemCatalog::LONGDOUBLE. | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Gagan Goel (Inactive) [ 2020-07-08 ] | ||||||||||||||||||||||||||||||||||||||||||
|
David.Hall Does it also need to be ported back to 1.4 and 1.2? I see that you have corrected the ref file as part of your | ||||||||||||||||||||||||||||||||||||||||||
| Comment by David Hall (Inactive) [ 2020-07-10 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Use | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-07-10 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Builds tested 1.5.3-1 (drone #280 and #287) The issue is still in build #280, but fixed in #287 (built with community server) | ||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-07-10 ] | ||||||||||||||||||||||||||||||||||||||||||
|
Build verified: 1.5.3-1 (drone #299, Enterprise) MariaDB [mytest]> set sql_mode="ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"; MariaDB [mytest]> set autocommit=0; MariaDB [mytest]> UPDATE sub1 SET c2 = (SELECT SUM(sub2.c3) FROM sub2 where sub1.c1=sub2.c1); MariaDB [mytest]> select * from sub1;
-----
----- |