[MCOL-1322] data corruption when setting NUMERIC columns to NULL through the python and C++ API Created: 2018-04-04 Updated: 2023-10-26 Resolved: 2018-10-03 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.3 |
| Fix Version/s: | 1.1.7, 1.2.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Dimitris Theodorou | Assignee: | Jens Röwekamp (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2018-18 | ||||||||
| Description |
|
Using the bulkInsert.setNull() function on a NUMERIC column results in data corruption. The columns and the ones that follow are affected. A test case that reproduces this: The table
Python code usage
The commit finishes successfully with no error counts. Querying the table gives this result:
You can see the values for num2 and b are wrong. I've had corruption errors on the table after this:
Doing the same insert through INSERT or cpimport gives the correct results. I'm running the 1.1.3 release |
| Comments |
| Comment by Dimitris Theodorou [ 2018-04-04 ] | |||||||||||||||||
|
May be related to https://jira.mariadb.org/browse/MCOL-1295 | |||||||||||||||||
| Comment by Jens Röwekamp (Inactive) [ 2018-06-28 ] | |||||||||||||||||
|
Confirmed bug with mcsapi 1.1.5 where Used provided Python example and translated code to C++.
| |||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-10-02 ] | |||||||||||||||||
|
For QA: The dataconvert-null test in the API test suite has been expanded to cover this. | |||||||||||||||||
| Comment by Jens Röwekamp (Inactive) [ 2018-10-03 ] | |||||||||||||||||
|
test suite successfully executed on Debian 9, CentOS 7, Windows 10 |