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

1102 Commits

Author SHA1 Message Date
benthompson15
39a2253ee1 Merge pull request #346 from drrtuy/MCOL-939
MCOL-939 Moved columnstore version information to columnstoreversion.h for 1.1.X
2017-12-19 13:21:19 -06:00
Andrew Hutchings
e9aff27e59 MCOL-1116 Fix I_S.CS_FILES for missing dbroot
If a dbroot is missing/offline mysqld would crash on
information_schema.columnstore_files due to not catching an exception.
This patch now catches the exception.
2017-12-15 20:33:07 +00:00
David.Hall
d7c0075536 Merge pull request #350 from mariadb-corporation/1.1-merge-up
1.1 merge up
2017-12-13 08:36:56 -06:00
Andrew Hutchings
17f077012d Merge branch 'develop-1.1' into 1.1-merge-up 2017-12-13 09:09:39 +00:00
david hill
44c06f2cc3 MCOL-1106 - increased mysqld startup timeouts 2017-12-12 16:32:49 -06:00
Andrew Hutchings
86b12cabae MCOL-978 Disable QCache for ColumnStore
ColumnStore tables can have data modifications away from a specific
MariaDB server. This means it is possible for QCache to not be
invalidated properly in vtable mode 0. This patch makes sure it is
disabled for ColumnStore.
2017-12-12 21:11:52 +00:00
Roman Nozdrin
bea47cc657 MCOL-939 Moved columnstore version information to columnstoreversion.h for 1.1.X 2017-12-12 22:53:33 +03:00
Andrew Hutchings
8babe4a35d Merge branch 'develop-1.0' into 1.0-merge-up 2017-12-12 10:01:14 +00:00
Andrew Hutchings
b657938709 MCOL-1068 Improve compression_ratio() procedure
* Uncompressed columns caused a miscalculation for compression ratio
* We now show a ratio such as 2:1 rather than a percentage
* compressed_data_size instead of file_size is used to show the
compression of actual data, ignoring the pre-allocated segment
2017-12-01 19:32:35 +00:00
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
932819ba23 Merge branch 'develop-1.1' into merge-up-dev 2017-11-24 11:10:09 +02: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
Andrew Hutchings
01446d1e22 Reformat all code to coding standard 2017-10-26 17:18:17 +01: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