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

1737 Commits

Author SHA1 Message Date
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
david hill
d5e873e198 MCOL-814 2017-07-17 15:43:18 -05:00
David.Hall
4658b46217 Merge pull request #199 from mariadb-corporation/MCOL-674-1.1
MCOL-674 Fix subquery in UPDATE
2017-07-11 09:42:37 -05:00
David.Hall
e6d8584eea Merge pull request #200 from mariadb-corporation/MCOL-674
MCOL-674 Fix subquery in UPDATE
2017-07-11 09:42:23 -05:00
Andrew Hutchings
d76c111690 Support ORDER BY NULL 2017-07-11 15:15:11 +01:00
Andrew Hutchings
f3f830a9ca Support ORDER BY NULL 2017-07-11 15:14:24 +01:00
Andrew Hutchings
976cc16a0e MCOL-674 Fix subquery in UPDATE
When some subquery changes were made over a year ago the flag to state
that an UPDATE subquery was not constant data was accidentally commented
out. This brings it back in again.
2017-07-11 13:57:23 +01:00
Andrew Hutchings
14771bd941 MCOL-674 Fix subquery in UPDATE
When some subquery changes were made over a year ago the flag to state
that an UPDATE subquery was not constant data was accidentally commented
out. This brings it back in again.
2017-07-11 13:55:22 +01:00
Andrew Hutchings
458f445629 MCOL-763 Remove dumpcat.pl
Dumpcat was trying to pull in Perl's MySQL DBD as a dependency in RPM
builds. For 1.1 this causes conflicts so we can't do this. There are
alternative tools in ColumnStore to do the same thing as dumpcat.pl and
the SQL files are still there which is what the support tool uses.
2017-07-05 07:42:32 +01:00
david hill
84741a7eb2 MCOL-472 - additional tweak to full shutdown both mysql processes 2017-06-13 09:51:46 -05:00
david hill
d16dfec7f7 MCOL-472 - additional tweak to full shutdown both mysql processes 2017-06-13 09:50:47 -05:00
david hill
2dd99eabf7 MCOL-472 - fix the force shutdown command 2017-06-12 16:29:49 -05:00
david hill
ba7825cce6 MCOL-472 - fixed mysqld path issue on kill by pid 2017-06-05 16:55:45 -05:00
Andrew Hutchings
c517466026 MCOL-730 Fix decimals in cross engine join
We would get strange values for scale/precision in the results column of
a cross engine join causing bad results. This patch uses the values from
the libdrizzle client connector instead.
2017-06-02 14:50:40 +01:00
Andrew Hutchings
5d405588fc MCOL-730 Fix decimals in cross engine join
We would get strange values for scale/precision in the results column of
a cross engine join causing bad results. This patch uses the values from
the MariaDB client connector instead.
2017-06-02 14:09:30 +01:00
Andrew Hutchings
fc07ee29f3 MCOL-707 Fix ExeMgr's memory accounting
ExeMgr uses ResourceManager to count memory usage. If a usage exceeded
error occurs the counting wasn't reset and subsequent usage attempts in
the same ExeMgr thread would error.

This patch moves the in-class accounting for GroupConcat and others so
that it happens before the error is detected. The memory usage counter
is then decremented correctly on the class destructor.
2017-05-12 12:57:56 +01:00
Andrew Hutchings
83331f4fa7 MCOL-712 Support TEXT for GROUP BY
Add missing support
2017-05-11 10:32:29 +01:00
dhall-InfiniDB
6400d5c6fb Merge pull request #179 from mariadb-corporation/MCOL-707
MCOL-707 Fix ExeMgr's memory accounting
2017-05-10 10:05:24 -05:00
Andrew Hutchings
4adb50f171 MCOL-707 Fix ExeMgr's memory accounting
ExeMgr uses ResourceManager to count memory usage. If a usage exceeded
error occurs the counting wasn't reset and subsequent usage attempts in
the same ExeMgr thread would error.

This patch moves the in-class accounting for GroupConcat and others so
that it happens before the error is detected. The memory usage counter
is then decremented correctly on the class destructor.
2017-05-10 11:45:31 +01:00
dhall-InfiniDB
491799041e Merge pull request #174 from mariadb-corporation/MCOL-657
MCOL-657 Support the <=> operator
2017-05-09 09:49:39 -05:00