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

1706 Commits

Author SHA1 Message Date
Andrew Hutchings
29edb0a1f7 MCOL-944 Fix aggregate type switch
Aggregates could switch from unsigned to signed prior to execution. This
causes issues with NULL values since signed and unsigned NULLs are
different.
2017-10-02 11:50:31 +01:00
Andrew Hutchings
0b45e3042b MCOL-944 Fix aggregate type switch
Aggregates could switch from unsigned to signed prior to execution. This
causes issues with NULL values since signed and unsigned NULLs are
different.
2017-10-02 11:47:56 +01:00
David.Hall
871f64ee71 Merge pull request #268 from mariadb-corporation/MCOL-895-1.0
MCOL-895 Sort system catalog ridList
2017-09-28 09:40:33 -05:00
David.Hall
2ce3acec1a Merge pull request #267 from mariadb-corporation/MCOL-895-1.1
MCOL-895 Sort system catalog ridList
2017-09-28 09:40:20 -05:00
David Hall
c4269871fe MCOL-911 getAggCols needs to look into the objects 2017-09-20 14:11:42 +01:00
Andrew Hutchings
752a05cbca MCOL-895 Sort system catalog ridList
It is possible to have the columns for a table in a different order
within the system catalog. This causes problems for things like
WriteEngine so this patch sorts the columns based on position for the
system catalog cache.
2017-09-20 14:03:45 +01:00
Andrew Hutchings
99d0027cc6 MCOL-895 Sort system catalog ridList
It is possible to have the columns for a table in a different order
within the system catalog. This causes problems for things like
WriteEngine so this patch sorts the columns based on position for the
system catalog cache.
2017-09-20 14:03:06 +01:00
David.Hall
de457bfe4b Merge pull request #265 from mariadb-corporation/MCOL-859-1.1
MCOL-859 DDL System catalog mutex deadlock
2017-09-19 15:52:39 -05:00
Andrew Hutchings
8ca85fbb40 MCOL-859 DDL System catalog mutex deadlock
A race between a DDL change and a system catalog version cache update
can cause a deadlock in DDLProc. This makes the mutex recursive.
2017-09-19 15:50:49 -05:00
Andrew Hutchings
1b17175d3b MCOL-877 Fix I_S / LDI cpimport escaping
Backslashes need escaping otherwise they are not sent to cpimport
correctly.
2017-09-19 15:47:27 -05:00
David.Hall
40e0f6296d Merge pull request #258 from mariadb-corporation/MCOL-859-1.0
MCOL-859 DDL System catalog mutex deadlock
2017-09-15 10:18:55 -05:00
David.Hall
729105e793 Merge pull request #260 from mariadb-corporation/MCOL-877-1.0
MCOL-877 Fix I_S / LDI cpimport escaping
2017-09-15 10:16:29 -05:00
Andrew Hutchings
fa1b487bcd MCOL-877 Fix I_S / LDI cpimport escaping
Backslashes need escaping otherwise they are not sent to cpimport
correctly.
2017-09-15 11:19:26 +01:00
Andrew Hutchings
f15b2390a3 MCOL-859 DDL System catalog mutex deadlock
A race between a DDL change and a system catalog version cache update
can cause a deadlock in DDLProc. This makes the mutex recursive.
2017-09-15 10:08:38 +01:00
David Hall
efac173049 MCOL-911 getAggCols needs to look into the objects 2017-09-14 23:46:09 -05:00
David Hall
a0b30f904c MCOL-523 Remove un-implemented functions finish(), getRowCnt(), and getRowsInPartition(). 2017-09-07 16:02:36 -05:00
Andrew Hutchings
fe202e0f13 Merge pull request #245 from mariadb-corporation/MCOL-890
MCOL-890 add logic to perform dictionary lookup for GROUP_CONCAT in t…
2017-08-30 20:36:45 +01:00
David Hall
d30bf8dba1 MCOL-890 add logic to perform dictionary lookup for GROUP_CONCAT in the presence of COUNT(<same col>) 2017-08-29 14:01:18 -05:00
David Hall
a623a2889b MCOL-890 add logic to perform dictionary lookup for GROUP_CONCAT in the presence of COUNT(<same col>) 2017-08-25 10:54:50 -05:00
Andrew Hutchings
401e257df3 MCOL-879 Fix QueryStats linking issues
With 1.1 we have removed libdrizzle and used MariaDB's client library
instead for both CrossEngine and QueryStats. Unfortunately MariaDB 10.2
has two client libraries which have different structs with the same
name. When QueryStats was running inside the ColumnStore plugin this
symbol conflict was causing a crash.

The server's built-in client API has several different and several
missing functions so some additions to sm.cpp were made to fill the
gaps.

This patch does the following:

* Make sure that libmariadb is only linked to executables, not the
ColumnStore Plugin (to avoid symbol conflicts). Note that all
executables that link to CrossEngine and/or QueryStats need to link to
libmariadb to avoid missing symbol issues.
* Use the server's built-in client API for QueryStats when run in the
plugin
* Replace missing server built-in client API calls in sm.cpp (this is
for QueryStats and CrossEngine to keep the dynamic linker happy)
* Fixes issue where using 'localhost' as the MariaDB Server hostname
would fail in QueryStats.
2017-08-18 10:16:52 +01:00
David Hall
4eafaa8682 MCOL-869 UDAF with other aggregate gives wrong answer 2017-08-11 12:46:19 -05:00
Andrew Hutchings
bfe54eb91c MCOL-835 Fix non-braced 'if' 2017-08-11 10:13:29 +01:00
Andrew Hutchings
980ee891fd MCOL-835 Fix non-braced 'if' 2017-08-11 10:12:56 +01:00
Andrew Hutchings
a38c65b65c MCOL-835 Fix use-after-free crash in ExeMgr
It is possible that DistributedEngineComm can get the Stats object from
an MQE object and the MQE object freed before it's stats object is
passed to InetStreamSocket.

This patch makes sure that DistributedEngineComm gets a reference to MQE
instead of the pointer to the Stats object in another reference.
Therefore making sure that the Stats object still exists in
InetStreamSocket.
2017-08-11 10:10:23 +01:00
Andrew Hutchings
bd43c259df MCOL-835 Fix use-after-free crash in ExeMgr
It is possible that DistributedEngineComm can get the Stats object from
an MQE object and the MQE object freed before it's stats object is
passed to InetStreamSocket.

This patch makes sure that DistributedEngineComm gets a reference to MQE
instead of the pointer to the Stats object in another reference.
Therefore making sure that the Stats object still exists in
InetStreamSocket.
2017-08-11 10:06:13 +01: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
496d3b4ce7 Merge pull request #228 from mariadb-corporation/MCOL-515-1.1
MCOL-515 Fix cross engine for FE2/3 modes
2017-08-07 09:31:11 -05:00
Andrew Hutchings
c2e0d38ed9 MCOL-515 Fix cross engine for FE2/3 modes
When subqueries and group by are used in CrossEngine the first row group
is either corrupted or ignored. This is related to MCOL-430 which fixed
the case for FE1 mode.
2017-08-04 15:11:41 +01:00
Andrew Hutchings
a755393067 MCOL-515 Fix cross engine for FE2/3 modes
When subqueries and group by are used in CrossEngine the first row group
is either corrupted or ignored. This is related to MCOL-430 which fixed
the case for FE1 mode.
2017-08-04 15:07:32 +01:00
Andrew Hutchings
2e2d7f3289 MCOL-812 Escape slash as well as single quote
Previous attempt at fix only escaped quote
2017-08-03 20:37:12 +01:00
Andrew Hutchings
eaf491c1a4 MCOL-812 Escape slash as well as single quote
Previous attempt at fix only escaped quote
2017-08-03 20:35:38 +01:00
David Hall
e49edf19c8 MCOL-523 set copyright notices 2017-08-03 11:36:19 -05:00
David Hall
b401a9293c MCOL-523 Add back in initial reset for UDAF calls without GROUP BY 2017-08-02 14:57:07 -05:00
David Hall
211cde5b05 MCOL-523 merge conflict 2017-08-02 12:17:21 -05:00
David Hall
f428cdc371 MCOL-523 fix a merge issue, MEDIAN test for empty set. 2017-08-02 12:12:00 -05:00
David Hall
bea6bff085 MCOL-523 don't set empty object as default 2017-08-02 11:32:06 -05:00
David Hall
bc2a4e7795 MCOL-523 Add UDAF and UDAnF SDK 2017-08-02 11:22:07 -05:00
Andrew Hutchings
6aeb1bfa3a MCOL-840 Fix incompatible join on expression
This check was removed but is actually still required in some cases.
2017-08-01 14:48:24 +01:00
David.Hall
606846e27f Merge pull request #214 from mariadb-corporation/MCOL-830
MCOL-830 Allow cross engine to work with UTF8
2017-07-31 13:11:11 -05:00
David.Hall
12d98d5a4e Merge pull request #215 from mariadb-corporation/MCOL-830-1.0
MCOL-830 Allow cross engine to work with UTF8
2017-07-31 13:10:57 -05:00
Andrew Hutchings
b39a8c2fbc MCOL-812 fix typo 2017-07-27 16:26:57 +01:00
Andrew Hutchings
80bdfdf156 MCOL-812 fix typo 2017-07-27 16:26:34 +01:00
Andrew Hutchings
640a66a29e MCOL-812 Escape cross engine filters
Quote marks in cross engine where conditions need to be escaped
2017-07-27 16:14:40 +01:00
Andrew Hutchings
668133d915 MCOL-812 Escape cross engine filters
Quote marks in cross engine where conditions need to be escaped
2017-07-27 16:13:01 +01:00
Andrew Hutchings
2aacb56bc6 MCOL-830 Allow cross engine to work with UTF8
UTF8 characters just showed as question marks. This patch makes them
retrieve correctly.
2017-07-27 14:59:10 +01:00
Andrew Hutchings
5f166733f7 MCOL-830 Allow cross engine to work with UTF8
UTF8 characters just showed as question marks. This patch makes them
retrieve correctly.
2017-07-27 14:26:30 +01:00
David Hill
842838e5ce MCOL-833 - fix code merge issue 2017-07-26 15:30:01 -05:00
david hill
26ac4aa31c mcol-833 - merge code from 1.0 for missing file fix 2017-07-26 15:03:52 -05:00
Andrew Hutchings
9ad2b0c496 MCOL-636 CHAR/VARCHAR return optimisation
Returns pointers to string buffer instead of making a copy first.
2017-07-18 14:51:40 +01:00
david hill
c88903191d MCOL-814 2017-07-17 15:56:06 -05:00