1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-06-03 10:02:01 +03:00

241 Commits

Author SHA1 Message Date
Andrew Hutchings
ae9de1e426 Fix mergeup errors 2017-11-30 15:15:01 +00:00
Andrew Hutchings
37f673d121 Merge branch 'develop-1.0' into 1.0-merge-up 2017-11-30 15:09:11 +00:00
Andrew Hutchings
d60bc999c6 MCOL-1029 Skip cached conditions
Cached conditions are things like (TRUE OR FALSE). They don't actually
add any value to the query and were breaking our working stack trying to
process them.
2017-11-20 16:06:21 +00:00
Andrew Hutchings
98138fe493 MCOL-1029 Skip cached conditions
Cached conditions are things like (TRUE OR FALSE). They don't actually
add any value to the query and were breaking our working stack trying to
process them.
2017-11-20 16:04:20 +00:00
Andrew Hutchings
dadcd6e969
Merge pull request #319 from mariadb-corporation/MCOL-963
MCOL-963 fix for regressions introduced
2017-11-14 21:55:01 +00:00
David Hall
9a012444ec MCOL-963 fix for regressions introduced 2017-11-14 15:25:38 -06:00
Andrew Hutchings
766f0b812b MCOL-1008 Fix bad length on bulk DML insert
If a VARCHAR was defined as less than 255 characters and a data via LDI
or INSERT...SELECT was > 127 characters the length field would contain a
negative number.

In 1.0.11 and 1.1.0 this was not a problem because we cast the negative
back again. With MCOL-877 we stoped doing the double-cast. This patch
casts properly the first time.
2017-11-11 09:34:35 +00:00
Andrew Hutchings
854d32560a MCOL-1008 Fix bad length on bulk DML insert
If a VARCHAR was defined as less than 255 characters and a data via LDI
or INSERT...SELECT was > 127 characters the length field would contain a
negative number.

In 1.0.11 and 1.1.0 this was not a problem because we cast the negative
back again. With MCOL-877 we stoped doing the double-cast. This patch
casts properly the first time.
2017-11-11 09:31:09 +00:00
david hill
c84ea561e1 MCOL-998 - added in binlog_format 2017-11-08 12:10:01 -06:00
David.Hall
bbdfcd70cb
Merge pull request #311 from mariadb-corporation/MCOL-1016-1.1
MCOL-1016 Fix I_S calculations
2017-11-07 14:13:54 -06:00
Andrew Hutchings
468b2d473b MCOL-1016 Fix I_S calculations
* COLUMNSTORE_EXTENTS data_size now shows the total size on the highest
segment of an extent file. It also shows 0 bytes if HWM is zero so that
if there is more than one segment it doesn't show 8192 bytes for the
lower segments.
* COMPRESSION_RATIO was missing some data and using compressed data size
instead of file size (which is probably more realistic).
2017-11-07 08:40:06 +00:00
Andrew Hutchings
929d0d3fe7 MCOL-1016 Fix I_S calculations
* COLUMNSTORE_EXTENTS data_size now shows the total size on the highest
segment of an extent file. It also shows 0 bytes if HWM is zero so that
if there is more than one segment it doesn't show 8192 bytes for the
lower segments.
* COMPRESSION_RATIO was missing some data and using compressed data size
instead of file size (which is probably more realistic).
2017-11-07 08:28:29 +00:00
david hill
4f63212145 mcol-1009 and mcol-1014 2017-11-06 17:46:07 -06:00
david hill
f9bdec3225 MCOL-943 - change to use defauly mysql password logic, reading from the .my.cnf file. changesfrom defaults-file to defulats-extra-file 2017-11-02 16:32:38 -05:00
David Hall
21e031798c MCOL-963 only set isNewQuery on INFINIDB_CREATE_VTABLE 2017-10-30 18:07:27 -05:00
David Hall
97eb46213b MCOL-963 reset infinidb_vtable.isNewQuery upon error. Add redo (REDO_PHASE1) counter. 2017-10-30 18:05:19 -05:00
David Hall
b70e9b5f67 MCOL-985 Add return code test after call to buildReturnedColumn 2017-10-24 13:49:46 -05:00
David Hall
16990c8e03 MCOL-985 Add return code test after call to buildReturnedColumn 2017-10-24 13:47:41 -05:00
Andrew Hutchings
3b4da1999d MCOL-973 Fix DOUBLE typecast crash
DOUBLE typecast was not supported and the failure detection caused a
crash.

This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
2017-10-20 12:42:40 +03:00
Andrew Hutchings
5911e677fa MCOL-973 Fix DOUBLE typecast crash
DOUBLE typecast was not supported and the failure detection caused a
crash.

This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
2017-10-20 12:38:11 +03:00
David Hall
cc9edcb54f MCOL-783 Check for recursive cte against all tables in the query. 2017-10-09 15:38:00 -05:00
David Hall
ff76412f68 MCOL-783 Check for recursive only cte. Check all cte in list. 2017-10-09 15:37:41 -05:00
David Hall
805300341c MCOL-783 Error not supported for recursive CTE 2017-10-05 11:07:47 -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
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
David Hall
a0b30f904c MCOL-523 Remove un-implemented functions finish(), getRowCnt(), and getRowsInPartition(). 2017-09-07 16:02:36 -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
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
b401a9293c MCOL-523 Add back in initial reset for UDAF calls without GROUP BY 2017-08-02 14:57:07 -05:00
David Hall
bc2a4e7795 MCOL-523 Add UDAF and UDAnF SDK 2017-08-02 11:22:07 -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.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
4f3968fb36 MCOL-657 Support the <=> operator
This converts <=> into "a = b OR (a IS NULL AND b IS NULL)"
2017-05-09 12:00:06 +01:00
Andrew Hutchings
e58333d4f2 MCOL-657 Support the <=> operator
This converts <=> into "a = b OR (a IS NULL AND b IS NULL)"
2017-05-09 11:57:28 +01:00
Andrew Hutchings
dc4f38a877 MCOL-686 Fix BETWEEN performance
BETWEEN was executing as a function on each row which meant that extent
elimination couldn't happen. We now execute as a predicate function
instead.
2017-05-08 21:07:39 +01:00
dhall-InfiniDB
1c2a8fccf3 Merge pull request #164 from mariadb-corporation/MCOL-697
MCOL-697 Limit the return length for LONGBLOB
2017-05-03 17:18:49 -05:00
Andrew Hutchings
e03267ae4b MCOL-697 Limit the return length for LONGBLOB
For LONGBLOB the string return length was 4GB for functions which got
converted to -1 and then to 20. This patch sets it to just under 2GB
which we use for LONGBLOB everywhere else.
2017-05-03 21:30:25 +01:00
dhall-InfiniDB
cb788c0be2 Merge pull request #163 from mariadb-corporation/MCOL-697
MCOL-697 Remove 64KB VARCHAR response limit
2017-05-03 09:43:29 -05:00
Andrew Hutchings
de06c48b6c MCOL-697 Remove 64KB VARCHAR response limit
This was a hard coded limit due to StringStore not being able to handle
more than this. It restricts hex() unnecessarily and is now redundant.
2017-05-03 08:07:56 +01:00
dhall-InfiniDB
d98d40bdb4 Merge pull request #160 from mariadb-corporation/MCOL-686
MCOL-686 Fix BETWEEN performance
2017-05-02 17:10:34 -05:00