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

1162 Commits

Author SHA1 Message Date
David Hall
79811ded8e Merge branch 'develop-1.2' into MCOL-1983
Conflicts:
	VERSION
	utils/windowfunction/windowfunctiontype.cpp
2019-01-21 14:51:43 -06:00
David Hall
16a6a0a27c MCOL-1983 Use long double for internal calculations of regr_*** functions. 2019-01-21 14:39:51 -06:00
Patrick LeBlanc
d53471fc75 Checkpointing some stuff. No way it'll build yet. 2019-01-18 10:19:14 -06:00
Roman Nozdrin
7b4cec5757 MCOL-1829 Subquery with limited order by could potentially return onordered set.
There were two code mistakes: Eq::operator() always returned true for
    any pair and Hasher::operator() always returned 0 as a key.
2019-01-14 16:55:41 +03:00
Andrew Hutchings
ab74bec10b Merge branch 'develop-1.1' into 1.2-merge-up-20190111 2019-01-11 20:16:38 +00:00
Gagan Goel
6deb5e1bfd MCOL-2057 Fix truncate(x,d) when d < 0 for unsigned int data types
For unsigned data types in the int family (tinyint, smallint, int, bigint),
truncate(x, d) now properly applies zeros when d < 0.
2019-01-08 20:15:04 -05:00
David Hall
eb75d3cd7e MCOL-1983 Reject non-numeric arguments for regr_*** functions that require numeric 2019-01-02 10:31:53 -06:00
Gagan Goel
d1ada75395 MCOL-270 Add support for MEDIUMINT data type 2018-12-30 19:13:16 -05:00
David Hall
4701e8f4af Merge branch 'develop' into MCOL-1983 2018-12-27 11:06:11 -06:00
Roman Nozdrin
35a17a87c4 MCOL-1829 Subquery with limited order by could potentially return onordered set.
There were two code mistakes: Eq::operator() always returned true for
	any pair and Hasher::operator() always returned 0 as a key.
2018-12-26 10:39:32 +03:00
Patrick LeBlanc
8220579b9a Merge pull request #656 from mariadb-corporation/MCOL-1676-1.1
MCOL-1676 Window Functions with FLOAT type gives incorrect answer
2018-12-21 19:33:44 -06:00
Andrew Hutchings
82bd9e29f5 Merge branch 'develop-1.1' into 1.1-merge-up-2018-12-20b 2018-12-20 20:55:00 +00:00
Andrew Hutchings
e4ee1095de Merge branch 'develop-1.1' into 1.1-merge-up-2018-12-20 2018-12-20 20:37:24 +00:00
David Hall
cc70726a33 MCOL-1983 For MCOL-1676 the reset of fValOut to NULL happens too soon. 2018-12-13 15:49:11 -06:00
David Hall
e8208d1690 Merge branch 'MCOL-1981' into MCOL-1983 2018-12-13 13:46:12 -06:00
David Hall
514f2ce7f0 Merge branch 'MCOL-1676' into MCOL-1983 2018-12-13 13:30:56 -06:00
Andrew Hutchings
7989ccefe0 MCOL-2018 Fix array bounds issue
StringStore NULL check includes a check for _CpNuLl_ in the
StringStore. This is a case should never happen but we keep it just in
case.

Unfortunately this check was skipping 4*8 bytes instead of just 4 bytes.
This is definitely bad behaviour but it could cause an out-of-bounds read
based crash.
2018-12-12 18:06:09 +00:00
David Hall
9d438f0a24 MCOL-1676 Window Functions with FLOAT type gives incorrect answer 2018-12-11 09:37:12 -06:00
David Hall
86ebce7b39 MCOL-1981 regr_avgx and regr_avgy should return NULL if count is zero 2018-12-10 11:42:01 -06:00
David Hall
4e74bbc7d7 MCOL-1676 -- setvalue based on output column type rather than input column type. 2018-11-29 15:29:57 -06:00
David Hall
0cef3bf31c MCOL-1983 Have regr_intercept, regr_slope and regr_r2 return NULL for 1 or 0 rows in set 2018-11-29 13:31:12 -06:00
David Hall
ed43876695 MCOL-1793 Refactor to handle another edge case. Also fix CORR and reset 2018-11-28 15:49:34 -06:00
David Hall
bbe642b1bc MCOL-1793 UDAnF: Reset fValOut so if the function returns without value, NULL is the result. 2018-11-28 10:59:08 -06:00
David Hall
c3477fe243 Merge branch 'develop' into MCOL-1793 2018-11-23 12:43:17 -06:00
David Hall
176ef2f2c1 MCOL-1793 Add udafContext to the copy constructor of WindowFunctionColumn. 2018-11-23 12:42:29 -06:00
Andrew Hutchings
1834b64de8 Merge branch 'develop-1.1' into 1.1-merge-up-2018-11-23 2018-11-23 11:45:17 +00:00
David Hall
3709fe92a5 Merge branch 'develop' into MCOL-1793 2018-11-20 16:30:22 -06:00
David Hall
9c1bc910a5 MCOL-1793, fix REGR_SLOPE calculations, change scale to DECIMAL_NOT_SPECIFIED (variable length) for most REGR_*** functions. 2018-11-20 16:29:17 -06:00
David Hill
8b6a6c9fca MCOL-1953 - removed unneeded 'done' 2018-11-20 13:41:07 -06:00
Andrew Hutchings
b1d5f54abe MCOL-1868 Fix error in unused code
There was a a bad line in some code that we don't currently compile. This
patch fixes that code in case we use it in the future.
2018-11-14 14:29:58 +00:00
Andrew Hutchings
ccca4e1347 MCOL-1885 Fix libmysql error handling
If an error occurs in mysql_real_query() it fell through and tried to
get a result set anyway. This caused the MariaDB error message to be
forgotten and a generic one returned instead.

This fix returns the query error message and also uses the int error
code for generic errors instead of casting it to an unsigned int.
2018-11-13 17:22:36 +00:00
Andrew Hutchings
85121060fb Merge branch 'develop-1.1' into 1.1-merge-up-2018-11-08 2018-11-08 18:39:44 +00:00
David Hill
d1a4ede32f MCOL-520 - fix buildbot startup issue 2018-11-07 14:51:19 -06:00
David Hill
da3d78de43 change to get tmp from config 2018-11-07 12:49:51 -06:00
Patrick LeBlanc
8dc988d849 Merge pull request #607 from mariadb-corporation/MCOL-520
Mcol 520
2018-11-07 10:37:10 -06:00
David Hall
06d1c9fcbe MCOL-1793 Handle transition of Window Frame from outside of Partition to inside part 2 2018-11-06 11:07:49 -06:00
David Hall
df6d97ca04 MCOL-1793 Handle transition of Window Frame from outside of Partition to inside 2018-11-06 10:48:37 -06:00
David Hall
1426b4d99b MCOL-1793-regr_* functions get wrong answer. Pretty up some code. 2018-11-06 10:30:38 -06:00
David Hall
e58c4c3381 MCOL-1793 remove commented experimental code 2018-11-06 10:16:34 -06:00
David Hall
d01fe36fdc MCOL-1793 Window functions return garbage if current row outside of window frame. 2018-11-06 10:11:45 -06:00
Patrick LeBlanc
ed4ca2cdd7 Merge pull request #609 from mariadb-corporation/MCOL-521-b
MCOL-521 The mysql udf stub code for distinct_count()
2018-11-05 12:45:55 -06:00
David Hall
5a1c55bc2d MCOL-521 The mysql udf stub code for distinct_count() 2018-11-05 12:38:32 -06:00
David Hill
cf181bb39a MCOL-520 - fix non-root cluster test issues 2018-11-03 17:38:17 -05:00
David Hall
826fdc82d5 Merge branch 'develop' into MCOL-1793 2018-10-29 12:19:20 -05:00
David Hall
72eb1d7345 MCOL-1793 Window functions fail when current row outside of window 2018-10-29 12:18:15 -05:00
Andrew Hutchings
65287a0613 MCOL-1826 Fix race in FLOAT/DOUBLE to string
In the FLOAT/DOUBLE to string conversions a class global string was used
to store the result. Unfortunately it is possible for an instance of
this class to be used by multiple threads of PrimProc simultaneously.
This would cause a race and data corruption or more likely a crash.

This fix passes a string object from the caller to use instead.
2018-10-22 17:56:49 +01:00
Patrick LeBlanc
81113217d6 Merge branch 'develop' into MCOL-520 2018-10-17 09:55:28 -05:00
Andrew Hutchings
ccd9a414eb MCOL-1810 Fix hang on low core count
Anything that links against joblist will spin up a threadpool upon
startup. This includes the tools setConfig/getConfig. It is possible on
a low core count machine or low CPU speed that the signal to the prune
thread to shutdown is sent before the thread has completed startup when
these quick-running tools are used.

This fix adds a mutex so that spin up and shutdown can't happen at the
same time as well as a stop watch in case we are shutting down when
either the thread is running or we haven't fully started.
2018-10-16 18:03:25 +01:00
Andrew Hutchings
de19208ea9 MCOL-1810 Fix hang on low core count
Anything that links against joblist will spin up a threadpool upon
startup. This includes the tools setConfig/getConfig. It is possible on
a low core count machine or low CPU speed that the signal to the prune
thread to shutdown is sent before the thread has completed startup when
these quick-running tools are used.

This fix adds a mutex so that spin up and shutdown can't happen at the
same time as well as a stop watch in case we are shutting down when
either the thread is running or we haven't fully started.
2018-10-16 17:55:41 +01:00
Patrick LeBlanc
ac9676b612 Merge remote-tracking branch 'upstream/develop' into MCOL-520 2018-10-15 10:15:11 -05:00