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

1162 Commits

Author SHA1 Message Date
Andrew Hutchings
e14e58ab6c Merge pull request #590 from mariadb-corporation/MCOL-1759
MCOL-1759 Add corr(), covar_pop(), covar_samp(), regr_sxx(), regr_sxy…
2018-10-12 17:01:45 +01:00
David Hall
e1d8211f27 MCOL-1759 Add corr(), covar_pop(), covar_samp(), regr_sxx(), regr_sxy(), regr_syy() functions as UDAF 2018-10-09 17:06:01 -05:00
Andrew Hutchings
19c8a2bd91 MCOL-266 Support true/false DDL default values 2018-10-09 14:15:20 +01:00
david hill
101b36acb6 Merge branch 'develop' into MCOL-520 2018-10-08 14:23:48 -05:00
David.Hall
ca7cb9a7b1 Merge pull request #581 from mariadb-corporation/MCOL-1433b
MCOL-1433 Fix TIME for MAKEDATE/TIMEDIFF
2018-10-08 11:56:26 -05:00
Andrew Hutchings
6a72b28bab MCOL-1775 Fix addtime/subtime for WHERE
MariaDB server renamed addtime/subtime so we need to use the new names
for these functions.
2018-10-06 11:27:51 +01:00
Andrew Hutchings
f1f13a09d1 Merge branch 'develop-1.1' into 1.1-merge-up-2018-10-05 2018-10-05 18:40:07 +01:00
Patrick LeBlanc
f54cc0803a MCOL-520. Made the error msgs users will hit more informative. 2018-10-04 16:17:28 -05:00
Patrick LeBlanc
4215a47b5c MCOL-520. More untested changes.
Went down the list in shmkeys.h, added sane error msgs on perms
errors accessing rest of the shmsegs there.
Realized we probably do need 666 to the shmsegs.
Also deleted a little dead code that was copy-pasted everywhere.
2018-10-04 14:25:01 -05:00
Andrew Hutchings
a127f84793 MCOL-1433 Fix TIME for MAKEDATE/TIMEDIFF
Fix saturation behaviour for TIME with MAKEDATE() and TIMEDIFF()
2018-10-04 16:53:14 +01:00
David Hill
7aff68969e MCOL-520 - back out nonroot shm changes 2018-10-03 14:09:48 -05:00
David Hall
dd99e420e0 MCOL-521 Remove "typename" from certain places as some compiles can't handle it 2018-10-02 11:05:50 -05:00
David Hill
8d3ce9757f MCOL-520 - initial changes for /dev/shm 2018-10-01 14:39:17 -05:00
David Hall
dc9ba90f96 MCOL-521 add regr_intecept and regr_r2 2018-09-28 13:51:43 -05:00
Andrew Hutchings
5092b4fd13 MCOL-1750 unique_ptr doesn't work in all OSes 2018-09-28 07:55:06 +01:00
Andrew Hutchings
94dfacfe25 MCOL-1750 Fix threadpool stack leaks
When a thread has been idle for 10 minutes and we have too many threads
in the threadpool the thread will be pruned. This is done by the
thread's main function just returning. Unfortunately this does not free
up the memory, the thread either needs to be joined or detatched.

We cannot use detached threads since there are mutexes and conditional
variables between the main thread and the threadpool threads. If the
main thread finishes before the threadpool threads (as would happen in
cpimport) then crashes occur. The parent needs to wait on the child
threads which is the whole point in joining.

So this fix spawns a new thread which every minute will check the list
of threads to be joined due to timeout and join them.

We have had to use an adapted version of boost::thread_group so that we
can join a single thread based off its thread ID.

In addition with have modified PriorityThreadPool to use detached
threads since this does not need to signal the child threads at the end.
2018-09-28 07:21:49 +01:00
David Hill
c86b569c97 MCOL-520 2018-09-27 15:59:57 -05:00
David Hill
92cb061455 MCOL-520 2018-09-26 15:11:05 -05:00
David Hill
07e78c410b MCOL-520 2018-09-26 15:05:27 -05:00
David Hill
f25082bc9a MCOL-520 2018-09-25 17:20:46 -05:00
David Hall
d930a1e322 MCOL-521 Some more fixes for multi-parm aggregates. Add regr slope 2018-09-25 16:31:10 -05:00
David Hill
b7b98a3e1a MCOL-520 2018-09-25 11:32:56 -05:00
David Hill
81e35e35eb MCOL-520 2018-09-21 11:23:43 -05:00
David Hill
4e6e5647ef MCOL-520 2018-09-21 10:40:05 -05:00
David Hill
455776ed49 MCOL-520 2018-09-21 09:28:33 -05:00
David Hill
bf13a50800 MCOL-520 - remove sudo work and cleanup 2018-09-20 09:37:07 -05:00
David Hill
c7d3dc173e merge 2018-09-19 14:38:25 -05:00
david hill
2f58c7cc8d Merge pull request #574 from mariadb-corporation/develop
Develop
2018-09-19 14:01:38 -05:00
David Hall
3fac7b1e19 MCOL-521 more multi-param work with constant NULL 2018-09-13 14:12:10 -05:00
David Hall
70cec8f484 MCOL-1698 get DISTINCT working for UDAnF 2018-09-11 12:02:05 -05:00
David Hall
1b4063666b Merge branch 'develop' into MCOL-521-b 2018-09-10 13:55:52 -05:00
David Hall
52cbb62317 MCOL-1698 Fix code for DISTINCT in UDAnF 2018-09-10 13:53:56 -05:00
David.Hall
23e99db0ea Merge pull request #545 from mariadb-corporation/1.1-merge-up-20180817
Merge develop-1.1 into develop
2018-08-20 14:07:35 -05:00
Andrew Hutchings
03da6df473 Merge branch 'develop-1.1' into 1.1-merge-up-20180817 2018-08-17 16:17:13 +01:00
Andrew Hutchings
580a3ec123 MCOL-1647 Fix TIME regressions
Fixes the following:

* Read past buffer end in intToDatetime / intToTime
* Allow intToTime to convert datetime
* Allow intToTime to convert shortened time values
* Allow stringToTime to convert datetime and int time values
* Fix saturation / bad values in intToTime and stringToTime
* Fix TIME return in STR_TO_DATE()
* Fix NULL return on type inequality for TIMEDIFF()
* Fix zero day calculation error in ADDTIME()/SUBTIME()
* Fix DATETIME to int calculation error in aggregate bit operations
* Make the new harderning flags optional with -DSECURITY_HARDENED_NEW
2018-08-17 07:55:51 +01:00
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