1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00
Commit Graph

1162 Commits

Author SHA1 Message Date
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
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
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
60a4d14e85 Merge pull request #493 from mariadb-corporation/MCOL-1201-b
Mcol 1201 b
2018-06-07 17:40:45 +01:00
58f10055aa MCOL-1201 Add regr_avgx to included functions 2018-06-07 10:05:35 -05:00
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
09269af6d8 MCOL-1417 Fix cpimport TIME saturation 2018-06-07 12:16:55 +01:00
2b77f0f284 MCOL-1201 Handle NULLs in Window functions correctly. 2018-06-06 16:51:47 -05:00
ea70806e93 MCOL-1201 Add support for UDAF multiple parm constants 2018-06-05 14:10:04 -05:00
ec3a3846c3 MCOL-1201 manual rebase with develop. Obsoletes branch MCOL-1201 2018-06-05 14:06:58 -05:00
c8c3b23e32 MCOL-1201 Modify docs. Fix group concat bug 2018-06-05 13:54:17 -05:00
06e9772310 MCOL-1201 some fixes from testing 2018-06-05 13:54:17 -05:00
c67ac7699e MCOL-1201 Add test UDAF back in after rebase 2018-06-05 13:54:17 -05:00
6fa7dded6f MCOL-1201 manual rebase with develop. Obsoletes branch MCOL-1201 2018-06-05 13:54:17 -05:00
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
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
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
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
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
1d8964ec0d Fix code style 2018-05-31 14:44:48 +01:00
53f281933a Merge branch 'develop-1.1' into 1.1-merge-up-20180531 2018-05-31 14:43:52 +01:00
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
fc8754065f Merge branch 'develop' into MCOL-520 2018-05-30 09:28:07 -05:00
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
5b1f5d5fe4 MCOL-1412 Ubuntu 18.04 support
Backport Ubuntu 18.04 support to 1.1
2018-05-14 22:03:25 +01:00
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
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
1a582eed4a Merge branch 'develop-1.1' into 1.1-merge-up-20180509-a2 2018-05-09 09:20:55 +01:00
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
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
c40903de9b MCOL-392 Apply astyle
Make this branch apply our style guidelines
2018-05-01 09:52:26 +01:00
4ef4286022 MCOL-392 Fix time_to_sec() for negative time 2018-05-01 07:25:25 +01:00
dfc351b730 MCOL-392 fix negative zero hours
Also fix some functions that were not behaving correctly
2018-04-30 22:08:10 +01:00
3c090647af MCOL-392 Fix microsecond and nullif for TIME 2018-04-30 11:34:58 +01:00
a5f2f80bed MCOL-392 Fix case 2018-04-30 10:41:52 +01:00
fc05a9c6c2 MCOL-392 Fix greatest() and least() for time 2018-04-30 09:42:41 +01:00
aae2810d73 MCOL-392 Fix time() for a DATETIME value 2018-04-30 09:42:41 +01:00
957dc44615 MCOL-392 Function fixes
Fixes most of the functions in funcexp so that time and datetime's
microseconds are handled correctly
2018-04-30 09:42:41 +01:00
bd50bbb8bb MCOL-392 Fix saturation handling 2018-04-30 09:42:41 +01:00
dba04e8b72 MCOL-392 Fix cpimport and >8bit positive hour 2018-04-30 09:42:41 +01:00
edb2e2f36d MCOL-392 Fix negative time handling 2018-04-30 09:42:41 +01:00
3c1ebd8b94 MCOL-392 Add initial TIME datatype support 2018-04-30 09:42:41 +01:00
b584a7f555 MCOL-392 Add DATETIME microscond support
Add initial microsecond support for DATETIME
2018-04-30 09:42:41 +01:00
b58122589b Merge branch 'develop-1.1' into dev-merge-up-20180430 2018-04-30 08:51:58 +01:00
f2d748cff1 MCOL-1293 2018-04-16 16:22:03 -05:00
0c6dc5e15c MCOL-1341 Fix CASE handling with 10.2.14
MariaDB Server 10.2.14 changed the order that CASE items are processed.
This broke the engine's CASE handling. This patch uses the new order
instead since this is what will be used in 10.2 and 10.3 going forward.
2018-04-16 19:21:28 +01:00
0ea35564f0 MCOL-520 - remove sudo command 2018-04-12 10:49:09 -05:00
280dcb44bf Merge branch 'develop-1.1' into dev-merge-up-20180409 2018-04-09 19:15:18 +01:00
333f848a2f MCOL-1317 Mcol-1318 2018-04-05 13:24:55 -05:00
4067d69278 MCOL-1317 Mcol-1318 2018-04-05 13:23:06 -05:00