1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-20 00:09:21 +03:00
Commit Graph

577 Commits

Author SHA1 Message Date
David Hall
94455246a1 MCOL-521 Move regr functions to their own directrory 2018-08-16 11:56:48 -05:00
David Hall
611cdb204d MCOL-521 Re-do changes for MariaDB 10.3 merge 2018-08-16 11:17:39 -05:00
Andrew Hutchings
3a159908f4 MCOL-1385 Fix window functions
MariaDB maps MEDIAN to PERCENTILE_CONT and also has PERCENTILE_DISC now.
So remove our MEDIAN UDAF but keep the source as it is used in docs.
2018-08-03 11:55:49 +01:00
Andrew Hutchings
443a2867c4 MCOL-1385 Initial 10.3 support 2018-08-02 14:55:01 +01:00
David Hill
8043674432 MCOL-1591 - add umask test to tester 2018-08-01 16:34:40 -05:00
drrtuy
0e856ce9b0 MCOL-1551 CS now supports hostnames in Columnstore.xml. 2018-07-24 23:05:09 +03:00
David Hall
db4279dac7 MCOL-1535 caseOperationType adjusted for new simple case order 2018-07-23 17:32:38 -05:00
Andrew Hutchings
e05250915b MCOL-1545
Remove getPool call. It is completely unused and it breaks compiling in
GCC 8.1
2018-07-19 09:29:06 +01:00
Andrew Hutchings
fb8aab959d MCOL-1433 Fix some functions for TIME
Fixes the following:

* CAST() (as DATE/DATETIME)
* DATE()
* DATE_FORMAT()
* MAKEDATE()
* NULLIF()
* TIMEDIFF()
* TO_DAYS() / DATEDIFF()
2018-07-12 15:13:43 +01:00
Roman Nozdrin
bd641301da Merge pull request #504 from mariadb-corporation/1.1-merge-up-20180621
Merge develop-1.1 into develop
2018-07-04 22:52:04 +03:00
Roman Nozdrin
77b52a6a32 MCOL-1446 CS sorting direction aligned with the server`s. 2018-07-03 19:55:30 +03:00
Andrew Hutchings
5fe9a91290 MCOL-1496 Fix array bug in joiner
Found using -D_GLIBCXX_ASSERTIONS
2018-06-25 11:17:50 +01:00
Andrew Hutchings
8c90419852 Fix merge and coding style issues 2018-06-22 15:31:31 +01:00
Andrew Hutchings
7ca289ded9 Merge branch 'develop-1.1' into 1.1-merge-up-20180621 2018-06-22 14:51:20 +01:00
Andrew Hutchings
40405c792a MCOL-1474 Add error handling to PTP
PriorityThreadPool didn't have very good error handling. If something
failed it would just ignore whatever was being processed. This could
lead to a query continuing without retreiving all of the required data.

This patch adds error handling, sending a message back to the client
and a log message. It also destroys and recreates the pool thread.
2018-06-14 16:28:06 +01:00
Andrew Hutchings
250d90a9bc MCOL-1474 Catch errors in PriorityThreadPool
PriorityThreadPool errors cause crashes in PrimProc. This patch catches
the errors and causes the thread to end cleanly.
2018-06-14 14:43:37 +01:00
David.Hall
1caa98ff46 Merge pull request #494 from mariadb-corporation/MCOL-1433
MCOL-1433 Fix several functions for TIME handling
2018-06-11 10:20:49 -05:00
Andrew Hutchings
d9e6ba90ad MCOL-1433 Fix several functions for TIME handling
This fixes hex() so that it outputs the hex of the ASCII for the time
data to make it aligned with MariaDB. It also fixes the following
functions so that they use NOW() as a DATETIME with the input TIME added
to it:

* weekday()
* yearweek()
* monthname()
* last_day()
* year()
* weekofyear()
* week()
* to_days()
* quarter()
* month()
* dayofyear()
* dayofweek()
* dayofmonth()
* day()
* date()
2018-06-08 14:58:08 +01:00
Andrew Hutchings
60a4d14e85 Merge pull request #493 from mariadb-corporation/MCOL-1201-b
Mcol 1201 b
2018-06-07 17:40:45 +01:00
David Hall
58f10055aa MCOL-1201 Add regr_avgx to included functions 2018-06-07 10:05:35 -05:00
David.Hall
53b29a03ad Merge pull request #492 from mariadb-corporation/MCOL-392-fixes
Fix a bunch of issues around TIME data type
2018-06-07 09:18:56 -05:00
Andrew Hutchings
09269af6d8 MCOL-1417 Fix cpimport TIME saturation 2018-06-07 12:16:55 +01:00
David Hall
2b77f0f284 MCOL-1201 Handle NULLs in Window functions correctly. 2018-06-06 16:51:47 -05:00
David Hall
ea70806e93 MCOL-1201 Add support for UDAF multiple parm constants 2018-06-05 14:10:04 -05:00
David Hall
ec3a3846c3 MCOL-1201 manual rebase with develop. Obsoletes branch MCOL-1201 2018-06-05 14:06:58 -05:00
David Hall
c8c3b23e32 MCOL-1201 Modify docs. Fix group concat bug 2018-06-05 13:54:17 -05:00
David Hall
06e9772310 MCOL-1201 some fixes from testing 2018-06-05 13:54:17 -05:00
David Hall
c67ac7699e MCOL-1201 Add test UDAF back in after rebase 2018-06-05 13:54:17 -05:00
David Hall
6fa7dded6f MCOL-1201 manual rebase with develop. Obsoletes branch MCOL-1201 2018-06-05 13:54:17 -05:00
Andrew Hutchings
d7562aa0ae MCOL-1419 Fix TIME update saturation values
We should saturate at the maximum and minimum values for TIME.
2018-06-05 12:54:37 +01:00
Andrew Hutchings
92cb6345fb MCOL-1428 Fix SUBTIME() with day in WHERE
SUBTIME() with day number used the DATETIME funciton instead of TIME so
got stuck in an endless loop. Now uses the TIME calculations instead.
2018-06-04 22:03:50 +01:00
Andrew Hutchings
fd6a2f46a5 MCOL-1429 Fix DAYNAME()/MONTHNAME() NULL result
For NULL result -1 cast to a uint was used as an array index. This
caused crashes with TIME data type.
2018-06-04 20:47:33 +01:00
Andrew Hutchings
6948ab85a3 MCOL-1427 Fix microsecond padding for display
We were padding from right, we needed to pad from left.
2018-06-04 19:57:42 +01:00
Andrew Hutchings
f850f8b0d0 MCOL-807 HOUR() is always positive
It is undocumented but when MariaDB gets a negative time in the HOUR()
function it always returns a positive value. This does the same for us.
2018-06-04 15:17:56 +01:00
Andrew Hutchings
1d8964ec0d Fix code style 2018-05-31 14:44:48 +01:00
Andrew Hutchings
53f281933a Merge branch 'develop-1.1' into 1.1-merge-up-20180531 2018-05-31 14:43:52 +01:00
Roman Nozdrin
1a1f3ea506 MCOL-1449. Fix the regression caused by changes in idborderby code for MCOL-1052. Add LIMIT and OFFSET support for group by handler. 2018-05-31 13:51:21 +03:00
david hill
fc8754065f Merge branch 'develop' into MCOL-520 2018-05-30 09:28:07 -05:00
Roman Nozdrin
7bdc60eb14 Merge pull request #466 from mariadb-corporation/1.1-merge-up-20180509-a2
Merge develop-1.1 into develop
2018-05-15 12:56:49 +03:00
Andrew Hutchings
5b1f5d5fe4 MCOL-1412 Ubuntu 18.04 support
Backport Ubuntu 18.04 support to 1.1
2018-05-14 22:03:25 +01:00
Andrew Hutchings
baf42e7b4a MCOL-1390 Fix SUBSTRING_INDEX for negative count
If negative count number is more than the number of characters in the
string then it should always return the string.

For example if a table contains SUBSTRING_INDEX('zzz', 'z', -5) should
return 'zzz'. Before this patch it would return NULL.
2018-05-10 18:32:22 +01:00
Andrew Hutchings
305bae1bcb MCOL-1402 Fix addtime/subtime
The changes to addtime/subtime for TIME datatype broke the handling of
the adding and subtracting of time. This fixes that.
2018-05-09 20:34:56 +01:00
Andrew Hutchings
1a582eed4a Merge branch 'develop-1.1' into 1.1-merge-up-20180509-a2 2018-05-09 09:20:55 +01:00
Andrew Hutchings
ac3e702a3e MCOL-1396 Allow StringStore to hold more than 2GB
StringStore originally worked by returning a 32bit pointer to a memory
location and storing the length with that pointer. This allowed 4GB to
be stored in 64KB blocks. With 1.1 we used the high bit to signify a
TEXT/BLOB string of > 64KB reducing the max capacity to 2GB but without
any bounds checking.

So, if you went over the 2GB mark the getter would think you are trying
to get a long string instead of a short one and come up empty. It would
then return NULL.

This patch uses 64bit memory points still retaining the high bit to
signify long strings. It also now stores the length with the string
rather than with the pointer to allow the full 64bits for pointers.

It also adds a bounds check for small strings.
2018-05-08 19:38:06 +01:00
Andrew Hutchings
b83c21d891 MCOL-1376 Fix compiler errors in Ubuntu 18.04
Ubuntu 18.04 uses GCC 7.3 which is a little stricter than before.

Fixes a few errors due to implicit includes that are no longer implicit
and a ton of warnings about the implied alignment of code in
utils/common/any.hpp
2018-05-02 09:40:27 +01:00
Andrew Hutchings
c40903de9b MCOL-392 Apply astyle
Make this branch apply our style guidelines
2018-05-01 09:52:26 +01:00
Andrew Hutchings
4ef4286022 MCOL-392 Fix time_to_sec() for negative time 2018-05-01 07:25:25 +01:00
Andrew Hutchings
dfc351b730 MCOL-392 fix negative zero hours
Also fix some functions that were not behaving correctly
2018-04-30 22:08:10 +01:00
Andrew Hutchings
3c090647af MCOL-392 Fix microsecond and nullif for TIME 2018-04-30 11:34:58 +01:00
Andrew Hutchings
a5f2f80bed MCOL-392 Fix case 2018-04-30 10:41:52 +01:00