[MCOL-98] Behavioral differences between MariaDB and ColumnStore for few functions Created: 2016-06-02 Updated: 2016-10-27 Resolved: 2016-10-27 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | 1.0.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 2016-19, 2016-20, 2016-21 | ||||||||||||||||
| Description |
|
Build tested: Name : mariadb-columnstore-platform Relocations: (not relocatable) POWER When supplied with crazily large or small values as parameters for the above functions, MariaDB returns a value out of range error, where Columnstore returns a value, which may or may not be correct. Here is a sample error msg From MariaDB: ERROR 1690 (22003) at line 1: DOUBLE value is out of range in 'pow(`qrepd01`.`datatypetestm`.`CBIGINT`,(-(3) * `qrepd01`.`datatypetestm`.`CIDX`))' As for cot(0), which is a divided-by-zero case, MariaDB returns an out of range error, where Columnstore returns NULL. Could this behavioral difference caused by a settings in the my.cnf file? For now, we are treating these differences as known/expected differences. |
| Comments |
| Comment by David Thompson (Inactive) [ 2016-09-21 ] | ||||||
|
In these cases, for beta, a sane error or value should be returned. | ||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-10-04 ] | ||||||
|
I just fixed COT(0) in | ||||||
| Comment by Daniel Lee (Inactive) [ 2016-10-27 ] | ||||||
|
Build tested: 1.0.4-1 beta mcsadmin> getsoft Name : mariadb-columnstore-platform All functions, except DIV, now returned the value out of range messages. DIV still returned a NULL value without error. MariaDB [mytest]> drop table dlee1; MariaDB [mytest]> create table mcol98 (c1 int) engine=columnstore; MariaDB [mytest]> insert into mcol98 values (0); MariaDB [mytest]> select 5 div c1 from mcol98;
----------
---------- MariaDB [mytest]> select c1, 5 div c1 from mcol98;
-----
----- | ||||||
| Comment by Ben Thompson (Inactive) [ 2016-10-27 ] | ||||||
|
Columnstore was returning 0 which was incorrect and changed to return NULL matching reference database. | ||||||
| Comment by Daniel Lee (Inactive) [ 2016-10-27 ] | ||||||
|
Verified: MariaDB [mytest]> create table mcol98 (c1 int); MariaDB [mytest]> show create table mcol98;
-------
------- MariaDB [mytest]> insert into mcol98 values (0); MariaDB [mytest]> select 5 div c1 from mcol98;
----------
---------- |