[MCOL-289] test001 bug2954.sql fails Created: 2016-09-12  Updated: 2016-10-10  Resolved: 2016-10-10

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr
Affects Version/s: None
Fix Version/s: 1.0.4

Type: Bug Priority: Minor
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-280 Beta issues Closed
Sprint: 2016-19

 Description   

There is a bug in this test COT(0) is not valid in MariaDB.

I'm unsure what the original test is testing for so don't know the best way to alter this.



 Comments   
Comment by Dipti Joshi (Inactive) [ 2016-09-29 ]

LinuxJedi Is the test suite fixed ? If not let us fix it and close it

Comment by Andrew Hutchings (Inactive) [ 2016-09-29 ]

not yet, it was flagged in my MCOL-25 test as something that needed fixing too

Comment by David Thompson (Inactive) [ 2016-10-03 ]

With infinidb: 5.1.73-log InfiniDB 4.6.7-1 cot(0) gets mapped to null regardless of storage engine.

With latest build columnstore: 10.1.17-MariaDB Columnstore 1.0.4-1, innodb returns an out of range error:
MariaDB [test]> select id, cot(id) from testi;
ERROR 1690 (22003): DOUBLE value is out of range in 'cot(`test`.`testi`.`id`)'
MariaDB [test]>

While columnstore continues to return null.

cot(0) is invalid as it is basically a divide by zero so this should also return an error in column store.

Comment by Andrew Hutchings (Inactive) [ 2016-10-03 ]

Good catch. If you explicitly use '0' (as the test did) it errors. If it is a column value it returns NULL.

Comment by Andrew Hutchings (Inactive) [ 2016-10-03 ]

This one will probably need a test which isn't in test001 (because the error will cause a test failure).

Note: the COT(0) test has been remove from bug2954.sql as it wasn't using ColumnStore's COT() function.

Comment by Daniel Lee (Inactive) [ 2016-10-10 ]

Build verified: a1.0.4-1
Name : mariadb-columnstore-platform
Version : 1.0.4
Release : 1
Architecture: x86_64
Install Date: Tue 04 Oct 2016 01:38:36 PM CDT
Group : Applications/Databases
Size : 11506458
License : Copyright (c) 2016 MariaDB Corporation Ab., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details.
Signature : (none)
Source RPM : mariadb-columnstore-platform-1.0.4-1.src.rpm
Build Date : Fri 30 Sep 2016 01:02:40 PM CDT

MariaDB [mytest]> select cinteger, cot(cinteger), cdecimal4_2,cot(cdecimal4_2) from datatypetestm;
-------------------------------------------------------------+

cinteger cot(cinteger) cdecimal4_2 cot(cdecimal4_2)

-------------------------------------------------------------+

-7483646 0.020422500667387287 -9.99 -1.5766699751727788
-7483645 -1.489606558993944 -9.98 -1.6120884706877217
-7483644 2.3084757344691176 -9.97 -1.6486676714540076
-7483643 0.16344485736121295 -9.96 -1.6864732712600456
-7483642 -1.1111255449286084 -9.95 -1.7255759518954368
7483643 -0.16344485736121295 9.95 1.7255759518954368
7483644 -2.3084757344691176 9.96 1.6864732712600456
7483645 1.489606558993944 9.97 1.6486676714540076
7483646 -0.020422500667387287 9.98 1.6120884706877217
7483647 -1.6296635659290382 9.99 1.5766699751727788
0 NULL 0.00 NULL

-------------------------------------------------------------+
11 rows in set (0.04 sec)

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