1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-20 01:42:27 +03:00
Commit Graph

1064 Commits

Author SHA1 Message Date
Gagan Goel
d333ac9e53 Revert "MCOL-4043 Fix memory leaks - 1" 2020-06-15 11:26:35 -04:00
Roman Nozdrin
5d6dc97aad Merge pull request #1254 from mariadb-corporation/columnstore_cache
Columnstore cache
2020-06-15 14:26:43 +03:00
Patrick LeBlanc
1c3ddb8ed7 Merge pull request #1272 from benthompson15/MCOL-4033
MCOL-4033
2020-06-12 18:19:36 -05:00
benthompson15
abb8aa3d8b MCOL-4033: table changed to lowercase. 2020-06-12 14:35:54 -05:00
Gagan Goel
881091c535 MCOL-4043 Fix memory leaks - 1
simpleScalarFilterToParseTree() performs a dynamic allocation
of a ParseTree object, but this memory is never freed later.
We now keep track of this allocation and perform the delete
in the JobList dtor after the query finishes.
2020-06-11 19:01:40 -04:00
Patrick LeBlanc
653a5f4554 Merge pull request #1258 from dhall-MariaDB/MCOL-3536
Mcol 3536
2020-06-08 18:46:58 -05:00
David Hall
f9078efbc6 MCOL-3536 Collation 2020-06-08 17:57:37 -05:00
David Hall
d289c30521 MCOL-3536 Collation 2020-06-08 17:19:07 -05:00
Gagan Goel
1a5c6910da Make changes based on feedback to PR #1254 for the cache. 2020-06-08 14:11:30 -04:00
David Hall
1d5e820e97 Merge branch 'develop' into MCOL-3536
Conflicts:
	CMakeLists.txt
2020-06-04 16:22:59 -05:00
Gagan Goel
1216f9fc70 For INSERT ... SELECT, don't use the is_cache_insert flag
when starting bulk insert. This will invoke cpimport for
the query instead of batch inserts mode. This is intentional
as batch inserts currently have an edge case mentioned in
MCOL-4037 that needs to be fixed.
2020-06-04 12:29:37 -04:00
David Hall
889094a23d MCOL-3536 Collation 2020-06-03 19:43:53 -05:00
Gagan Goel
dd9372c4e8 Fix INSERT ... SELECT on self.
For queries of the form:
  insert into cache1 select * from cache1;
We had a crash in the second call to get_status_and_flush_cache
due to cache->table being 0. This happened because for one of the
two ha_mcs_cache instances involved in this query, the call to
ha_mcs_cache::open was not setting cache_handler->file->lock.status_param.
The assignment to status_param was earlier protected by an if condition.
Solution is to remove that if condition in ha_mcs_cache::open.
2020-06-03 15:20:03 -04:00
Gagan Goel
c30d105c30 Use batch inserts for the cache flush. 2020-06-03 15:20:03 -04:00
Gagan Goel
e671b1d1e2 1. Some fixes to the cache interface code.
2. Set a Columnstore_cache table as a non-foreign engine table in isMCSTable().
2020-06-03 15:20:03 -04:00
Gagan Goel
43d5d511d7 Initial port of Monty's code of the ColumnStore cache. 2020-06-03 15:20:03 -04:00
Roman Nozdrin
ccdfe98409 Removed the last call of postConfigure(RIP). Changed dangerous default setting see MDEV-22197. 2020-06-03 16:31:56 +00:00
Patrick LeBlanc
5440977f45 Merge pull request #1197 from tntnatbry/develop-batchinserts-improve
Improve batch inserts.
2020-06-02 14:05:47 -05:00
David Hall
39a93ef753 MCOL-3536 Collation 2020-06-02 13:40:15 -05:00
Gagan Goel
57f393feaf Merge pull request #1246 from pleblanc1976/mcol-4023-1.5
Merge MCOL-4023 fix into 1.5
2020-06-02 11:33:10 -04:00
David Hall
46668d2607 Merge branch 'develop' into MCOL-3536 2020-06-01 15:09:44 -05:00
David Hall
78ac310e42 MCOL-3536 Collation 2020-06-01 15:08:15 -05:00
Patrick LeBlanc
4bddc92092 MCOL-4010 - fixes compilation errors on x64 w/-Werror
Merged in Sergei's patch.
2020-06-01 12:52:43 -04:00
Gagan Goel
01ff2652a6 MCOL-4023 Pushdown WHERE conditions for UPDATE/DELETE.
For certain queries, such as:
  update cs1 set i = 41 where i = 42 or (i is null and 42 is null);
the SELECT_LEX.where does not contain the required where conditions.
Server sends the where conditions in the call to cond_push(), so
we are storing them in a handler data member, condStack, and later
push them down to getSelectPlan() for UPDATES/DELETEs.
2020-06-01 11:03:42 -04:00
David Hall
a43de9d536 Merge branch 'develop' into MCOL-3536 2020-05-28 14:20:32 -05:00
David Hall
2e66b1f1e8 MCOL-3536 Collation 2020-05-28 14:19:17 -05:00
Patrick LeBlanc
5b6f1290d7 Merge pull request #1217 from tntnatbry/develop-mcol4005
MCOL-4005 Fix handling of utf8 and \ for TEXT data type
2020-05-27 09:36:15 -05:00
Patrick LeBlanc
2fa17c3b9a Merge pull request #1220 from drrtuy/exemgr-pp-connections
MCOL-4015 ExeMgr now re-establishes its connections with PrimProcs.
2020-05-27 09:19:01 -05:00
Roman Nozdrin
60b417b47f Merge pull request #1221 from jmrojas2332/develop
MCOL-3915 Update columnstore install and uninstall procedure
2020-05-27 16:26:14 +03:00
Roman Nozdrin
13414513e5 MCOL-4015 ExeMgr now re-establishes its connections with PrimProcs. 2020-05-27 12:45:15 +00:00
Roman Nozdrin
2647629c5d Merge pull request #1223 from drrtuy/MCOL-4018
MCOL-4018 Disable legacy OAM by default.
2020-05-27 11:33:36 +03:00
Roman Nozdrin
ee4589ef40 MCOL-4018 Disable legacy OAM by default. 2020-05-27 08:32:03 +00:00
Jose
9ad1041df9 MCOL-3915 Related. Fix to install_mcs_mysql.sh.in 2020-05-26 19:28:11 +00:00
David.Hall
eec7b58a40 Merge pull request #1195 from jmrojas2332/MCOL-3813
MCOL-3813 Count with view is incorrect
2020-05-26 12:58:22 -05:00
David Hall
06e50e0926 MCOL-3536 collation 2020-05-26 12:42:11 -05:00
Jose
90a167178a MCOL-3915 Update columnstore install and uninstall procedure 2020-05-22 23:13:09 +00:00
Gagan Goel
447a925228 MCOL-4005 Fix handling of utf8 and \ for TEXT data type
when performing LDI using cpimport.
2020-05-22 11:30:25 -04:00
David Hall
11ba12f6ea MCOL-3536 collation 2020-05-19 16:22:44 -05:00
David Hall
8479a87e46 Merge branch 'develop' into MCOL-3536 2020-05-18 16:22:01 -05:00
Patrick LeBlanc
91196607bd Merge pull request #1204 from mariadb-corporation/MCOL-3836_take2
MCOL-3991 Merge 3 MCS packages in one, MCOL-3923 Refactor MCS packaging rules take 1.
2020-05-15 17:39:35 -05:00
Patrick LeBlanc
8d0338411d Merge pull request #1202 from tntnatbry/develop-mcol4000
MCOL-4000 Allow columnstore_use_import_for_batchinsert to use a new value, ALWAYS.
2020-05-15 12:28:18 -05:00
David Hall
1f3d1e6fd6 MCOL-3536 collation 2020-05-14 16:02:49 -05:00
Gagan Goel
e4dde6157d MCOL-4002 Reset cal_connection_info members at the end of
ha_mcs_impl_end_bulk_insert() for transactions as well.
2020-05-14 16:21:49 -04:00
Gagan Goel
816139d06d MCOL-4000 Allow columnstore_use_import_for_batchinsert to use a
new value, ALWAYS, which invokes cpimport for LDI and INSERT..SELECT
from within and outside a transaction.

Default value of the session variable, ON, remains unchanged.
2020-05-12 19:42:15 -04:00
Jose
98abf95eae MCOL-3991 MCS is now single package and properly uninstalls 2020-05-12 13:36:24 +00:00
Gagan Goel
d4d0ebdf5d Improve batch inserts.
1) Instead of making dbrm calls to writeVBEntry() per block,
     we make these calls per batch. This can have non-trivial
     reductions in the overhead of these calls if the batch size
     is large.

  2) In dmlproc, do not deserialize the whole insertpackage, which
     consists of the complete record set per column, which would be
     wasteful as we only need some metadata fields from insertpackage
     here. This is only done for batch inserts at the moment, this
     should also be applied to single inserts.
2020-05-10 19:38:06 -04:00
Jose
90692c8cc2 MCOL-3813 Count with view is incorrect 2020-05-09 01:03:52 +00:00
Roman Nozdrin
cc69edce6a MCOL-3981 Fixed builds with cmake 2.8.X. 2020-05-04 15:35:26 +00:00
Patrick LeBlanc
cb4228d982 Merge branch 'columnstore-1.4.3' into merge-hotfix-patches-1.5
Conflicts:
	VERSION
	dbcon/mysql/ha_mcs.cpp
	dbcon/mysql/ha_mcs_execplan.cpp
	dbcon/mysql/ha_mcs_impl.cpp
	dbcon/mysql/ha_mcs_pushdown.cpp
	oam/install_scripts/columnstore-post-install.in
	oam/install_scripts/columnstore-pre-uninstall.in
	oam/install_scripts/columnstore.in
	oam/install_scripts/post-mysql-install
2020-04-27 17:17:55 -04:00
Patrick LeBlanc
1f333993e2 Merge pull request #1166 from dhall-MariaDB/MCOL-3757-1.5
MCOL-3757 Correct overwrite of MCOL-3903
2020-04-22 15:34:56 -05:00