[MCOL-1444] mcsapi's dataconvert-decimal fails for Ubuntu 18.04 Created: 2018-05-29  Updated: 2023-10-26  Resolved: 2018-05-30

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.1.5, 1.2
Fix Version/s: 1.1.5

Type: Bug Priority: Major
Reporter: Jens Röwekamp (Inactive) Assignee: Jens Röwekamp (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Ubuntu 18.04, with ColumnStore 1.2 (4334641df0df040e0f53332c11dc8e29dc34b8b7) and mcsapi 1.2 and 1.1.5


Sprint: 2018-11

 Description   

The dataconvert-decimal test fails with attached output.
Haven't checked combinations of other operating systems, ColumnStore and mcsapi versions.

The test passed on ColumnStore 1.1.4 with mcsapi 1.1.5 on CentOS 7.

jens@ubuntu18:~/mariadb-columnstore-api/test$ ./dataconvert-decimal
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from DataConvertDecimal
[ RUN      ] DataConvertDecimal.DataConvertDecimal
/home/jens/mariadb-columnstore-api/test/dataconvert-decimal.cpp:140: Failure
      Expected: row[2]
      Which is: "999999.9999"
To be equal to: "0.0000"
[  FAILED  ] DataConvertDecimal.DataConvertDecimal (266 ms)
[ RUN      ] DataConvertDecimal.MCOL1133
[       OK ] DataConvertDecimal.MCOL1133 (996 ms)
[----------] 2 tests from DataConvertDecimal (1262 ms total)
 
[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (3753 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] DataConvertDecimal.DataConvertDecimal
 
 1 FAILED TEST

Does our CI pipeline (buildbot) run these tests before merge?



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2018-05-29 ]

Looks like a Boost issue with Ubuntu 18.04. Reproduced it locally on that platform.

Comment by Andrew Hutchings (Inactive) [ 2018-05-29 ]

Decimal scale calculation in Ubuntu 18.04's Boost for zero is misbehaving. For now I'm shortcutting zero.

For QA: In Ubuntu 18.04 the API's regression suite should pass again after this fix.

Comment by Jens Röwekamp (Inactive) [ 2018-05-30 ]

test passed after fix on Ubuntu 18.04.

Generated at Thu Feb 08 02:28:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.