1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-02 06:13:16 +03:00
Commit Graph

74 Commits

Author SHA1 Message Date
Andrew Hutchings
21d8f04a65 Merge branch 'develop-1.1' into 1.1-mergeup-20180224 2018-02-24 11:07:24 -05:00
David Hall
30b4edb0cd MCOL-1178 Add bool processing to CASE 2018-02-02 15:30:12 -06:00
Andrew Hutchings
59d0a45da3 Merge branch 'develop-1.1' into 1.1-merge-up 2017-12-12 20:26:00 +00:00
Andrew Hutchings
37f673d121 Merge branch 'develop-1.0' into 1.0-merge-up 2017-11-30 15:09:11 +00:00
Andrew Hutchings
3d5bd3809c MCOL-444 Truncate UTF8 correctly
cpimport would truncate UTF8 data half way through a character which
would cause problems for functions using that data. This patch
calculates the correct truncation point when inserting the data.
2017-11-29 10:43:57 +00:00
Andrew Hutchings
01446d1e22 Reformat all code to coding standard 2017-10-26 17:18:17 +01:00
David Hall
c132f1b9ed MCOL-973 remove reference to TEXT in the 1.0 code 2017-10-24 17:39:01 -05:00
Andrew Hutchings
3b4da1999d MCOL-973 Fix DOUBLE typecast crash
DOUBLE typecast was not supported and the failure detection caused a
crash.

This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
2017-10-20 12:42:40 +03:00
Andrew Hutchings
5911e677fa MCOL-973 Fix DOUBLE typecast crash
DOUBLE typecast was not supported and the failure detection caused a
crash.

This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
2017-10-20 12:38:11 +03:00
David Hall
c10130d1b8 MCOL-898 In func_if, handle isNull better 2017-10-06 13:37:57 -05:00
David Hall
07d68aa8b1 MCOL-898 In func_if, handle isNull better 2017-10-06 13:36:28 -05:00
Andrew Hutchings
3330495a2e MCOL-777 Cleanup source
Clean out autotools and some other things from the source tree.
2017-08-07 15:59:56 +01:00
David Hall
bc2a4e7795 MCOL-523 Add UDAF and UDAnF SDK 2017-08-02 11:22:07 -05:00
Andrew Hutchings
ed5f51b593 MCOL-719 Add date/datetime to func_least/greatest
Support was missing and int casting caused unexpected results
2017-05-17 10:37:29 +01:00
Andrew Hutchings
21fe9e8faf MCOL-719 Add date/datetime to func_least/greatest
Support was missing and int casting caused unexpected results
2017-05-17 10:35:50 +01:00
David Hall
b371141202 MCOL-696 REVERSE reversing too much 2017-05-02 17:02:19 -05:00
David Hall
a3c4503bc9 MCOL-597 stabilization 2017-04-21 09:47:56 -05:00
Andrew Hutchings
28fe2c0b70 MCOL-664 Add function support for TEXT
For the initial BLOB/TEXT pull request we put them in the same bucket as
VARBINARY, forcing many functions to be disabled. This patch enables the
same TEXT function support as VARCHAR.
2017-04-15 07:22:05 +02:00
Andrew Hutchings
e9db44424c MCOL-642 Separate TEXT from BLOB
* TEXT and BLOB now have separate identifiers internally
* TEXT columns are identified as such in system catalog
* cpimport only requires hex input for BLOB, not TEXT
2017-03-27 21:36:27 +01:00
Andrew Hutchings
093aa377e5 MCOL-267 multi-block support for PrimProc and bulk
* Adds multi-block bulk write support
* Adds PrimProc multi-block read support
* Allows the functions length() and hex() to work with BLOB columns
2017-03-20 18:32:24 +00:00
Andrew Hutchings
0df1a5189f MCOL-389 Add int/string handling for mod()
Func_mod uses double instead of int for char casting. This patch adds int
handling and uses it where appropriate.
2016-12-19 15:06:04 +00:00
Andrew Hutchings
e090917ca0 MCOL-471 Fix GCC 6.3 support
isnan requires std:: namespace
2016-12-16 10:07:32 +00:00
david hill
d94c9f1e4e merge mcol-251 into develop 2016-10-11 15:27:20 -05:00
david hill
ed3bc28171 added copyright headers 2016-10-11 10:02:01 -05:00
Andrew Hutchings
e3edadc9c9 Merge pull request #37 from mariadb-corporation/MCOL-98
MCOL-98
2016-10-11 09:37:14 +00:00
Ben Thompson
e9ae596dab MCOL-98: Div actually returns Null and does not throw and error. Removed unneeded includes. 2016-10-11 02:20:46 -05:00
david hill
897d8d3f3d change snmp to alarm 2016-10-10 17:46:24 -05:00
Ben Thompson
d0e9cde782 MCOL-98: Added error message for functions returning out of range values. 2016-10-10 16:52:47 -05:00
dhall-InfiniDB
23b195a438 Merge pull request #34 from mariadb-corporation/MCOL-347
MCOL-347 Fix NULLIF() for DATETIME with DATE
2016-10-04 15:23:06 -05:00
dhall-InfiniDB
84d4ccfdd2 Merge pull request #31 from mariadb-corporation/MCOL-328-mk2
MCOL-328 Fix func float -> str conversion
2016-10-04 12:43:08 -05:00
Andrew Hutchings
0d292e2b78 MCOL-347 Fix NULLIF() for DATETIME with DATE
Comparing DATETIME with DATE compared two different date int formats
2016-10-04 17:23:10 +01:00
Andrew Hutchings
9606375939 MCOL-289 Fix MCOL(0) handling
Now throws an error instead of returning NULL to align with MariaDB
2016-10-03 22:27:30 +01:00
Andrew Hutchings
0da005ddae MCOL-328 Fix func float -> str conversion
Functions such as reverse() that do float/double to string conversion
use printf's %g to do it. Unfortunately this adds a '+' symbol before
the exponent symbol. MariaDB doesn't do this.

This patch builds the string in a way that does not have that problem,
it resembles the way it is done elsewhere in the codebase.
2016-10-03 21:03:07 +01:00
Andrew Hutchings
256c87c6f9 MCOL-326 Fix negative rand seeding
Needs to be using 32bit ints to fully behave like MariaDB
2016-10-03 16:09:11 +01:00
Andrew Hutchings
bc6298c92f MCOL-333 Fix subtime() for saturated values
In MariaDB (unlike MySQL) max/min time values include msec of 999999.
This means that subtime() with saturated values can be off by one
second.

For this calculation I have modified add_time (which also does
subtime()) to have a saturated value including 999999 msec. This fixes
the subtime test in the regression suite.
2016-09-30 14:47:54 +01:00
Ben Thompson
12516d93a7 MCOL-331: Fix position range check 2016-09-29 14:41:53 -05:00
Andrew Hutchings
52c0f79fcf MCOL-330 Fix datetime to int conversion
Datetime has internal int value which is very different to MySQL's int
value. This patch differentiates between the two and also fixes a column
width issue which appeared once the datetime handling was fixed.
2016-09-29 17:27:52 +01:00
dhall-InfiniDB
964ad342e7 Merge pull request #22 from mariadb-corporation/MCOL-332
MCOL-332 Fix MONTHNAME() cast to double
2016-09-27 14:42:20 -05:00
dhall-InfiniDB
7482b544c0 Merge pull request #21 from mariadb-corporation/MCOL-329
MCOL-329
2016-09-27 14:37:51 -05:00
Andrew Hutchings
35fab05207 MCOL-332 Fix MONTHNAME() cast to double
Should return 0 to match MariaDB
2016-09-27 18:23:22 +01:00
Andrew Hutchings
54fcfb20c5 Fix decimal to date/datetime casting 2016-09-27 17:31:05 +01:00
Andrew Hutchings
55844a0f0b Fix makedate() and year() functions
* The year() function did not handle float/double input correctly
* Makedate() did not handle year < 100 conversion
* 0 date was converted to NULL for some functions

In addition makedate did
2016-09-27 16:11:31 +01:00
Andrew Hutchings
5f70568d5c MCOL-325 Fix WEEK() and YEARWEEK()
The flags mask logic for the week function was incorrect. This patch
fixes it so that the behaviour is the same as MariaDB's
2016-09-27 14:32:26 +01:00
benthompson15
399d680375 Merge pull request #16 from LinuxJedi/MCOL-97
MCOL-97
2016-09-23 09:33:14 -05:00
Andrew Hutchings
e6925c8cf7 Merge pull request #13 from mariadb-corporation/MCOL-290
Mcol 290
2016-09-23 09:24:13 -05:00
Andrew Hutchings
3d91ac193c Merge branch 'develop' of git://github.com/mariadb-corporation/mariadb-columnstore-engine into MCOL-97 2016-09-22 18:50:59 -05:00
David Hall
76b4f3dd95 MCOL-176 Stop the arethmetic underflow 2016-09-22 09:30:20 -05:00
Ben Thompson
7d3cd26af9 MCOL-160 MCOL-262 CMake Build Fixes for out-of-tree builds and engine RPMS 2016-09-22 10:14:18 -04:00
David Hall
d1603696eb MCOl-297 CHARACTER_LENGTH(datetime) returns wrong length 2016-09-14 17:10:57 -05:00
Andrew Hutchings
b954001fba Remove net-snmp and use the OS version
Also remove a few old binaries from build/
2016-09-13 17:42:57 +01:00