[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: |
|
||||||||
| 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 | ||||||||||||||||||||||||||||||||||||||||||||||||
| 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: 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 MariaDB [mytest]> select cinteger, cot(cinteger), cdecimal4_2,cot(cdecimal4_2) from datatypetestm;
---------
--------- |