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

5453 Commits

Author SHA1 Message Date
David Hall
b5bc38c4ad MCOL-4329 dev set plugin-maturity to stable
Also remove x-columnstore.cnf
2020-09-28 14:35:34 -05:00
David Hall
c032d72539 MCOL-4327 dev Add std:: qualifier to distance()
In Ubuntu 20.04, it appears that unqualified, distance() is found in both std:: and boost::
2020-09-28 12:48:50 -05:00
Roman Nozdrin
ef7e150035 Merge pull request #1474 from tntnatbry/MCOL-4282-3
MCOL-4282 Follow up version 2.
2020-09-25 21:44:28 +03:00
Gagan Goel
a1ea633a19 MCOL-4282 Follow up version 2.
Mutate the optimizer flags for prepared statements in:
  1. ha_mcs::open
  2. ha_mcs::discover_check_version

This is done to ensure the optimizer flags are disabled before
JOIN::prepare() is called during "PREPARE stmt FROM ...".
2020-09-25 13:49:52 -04:00
Roman Nozdrin
ca076ed5af Merge pull request #1472 from jmrojas2332/MCOL-4314-develop
MCOL-4314 shared storage manager cluster initialization fix.
2020-09-25 18:55:22 +03:00
Jose Rojas
f129d506d3 MCOL-4314 Address comment regarding systemctl stop mariadb-columnstore 2020-09-25 09:53:02 -05:00
Jose Rojas
5fc6885af2 MCOL-4314 shared storage manager prevent data corruption on init 2020-09-24 19:50:34 -05:00
Gagan Goel
5646164a46 Merge pull request #1459 from dhall-MariaDB/MCOL-4144-dev
MCOL-4144-dev Enable lower_case_table_names
2020-09-24 19:10:22 -04:00
Jose Rojas
040f9fd32c Do not invoke subshell when using flock 2020-09-24 15:56:47 -05:00
David Hall
35c4b66a67 MCOL-4144 Enable lower_case_table_names
Create tables and schemas with lower case name only if the flag is set.
During operations, convert to lowercase in plugin. Byt the time a query gets to ExeMgr, DDLProc etc., everything must be lower case if the flag is set, and undisturbed if not.
2020-09-24 15:21:13 -05:00
Jose Rojas
bb7f137f65 MCOL-4314 Move flock to mariadb-columnstore-start script 2020-09-24 11:24:30 -05:00
Jose Rojas
a957352aaf MCOL-4012 Related. Minor improvement. 2020-09-24 11:24:22 -05:00
Jose Rojas
f966584bee MCOL-4314 shared storage manager cluster initialization fix. 2020-09-24 11:24:03 -05:00
David.Hall
f584bab846 Merge pull request #1467 from drrtuy/MCOL-4278-dev
MCOL-4278 MCS quits early from rnd_end() in the presense of sql_selec…
2020-09-24 10:11:08 -05:00
Jose Rojas
0f36084a6b Merge pull request #1469 from drrtuy/printout_fix-dev
Change the debugging output prints to separate multi-node with local …
2020-09-24 09:53:15 -05:00
Roman Nozdrin
2af81ccd64 Change the debugging output prints to separate multi-node with local storage
and single-node with any type of storage
2020-09-24 11:58:15 +00:00
Roman Nozdrin
7f744470d7 Merge pull request #1461 from tntnatbry/MCOL-4282-2
MCOL-4282 Follow up on the previous commit.
2020-09-24 11:48:17 +03:00
Roman Nozdrin
df0c2b2fbe MCOL-4278 MCS quits early from rnd_end() in the presense of sql_select_limit session variable
Renamed a couple methods to align their names with others
2020-09-24 08:46:00 +00:00
Gagan Goel
e257570b04 MCOL-4282 Follow up on the previous commit.
Activate statement arena for:
  1. disable_indices_for_CEJ()
  2. in_subselect_rewrite() for prepared statements
2020-09-23 15:45:20 -04:00
Gagan Goel
7f01571862 Merge pull request #1464 from dhall-MariaDB/MCOL-4306
MCOL-4306 don't compare string as signed int
2020-09-23 14:41:29 -04:00
David.Hall
2552597661 Merge pull request #1454 from tntnatbry/MCOL-4285
MCOL-4285 In replication, perform LDI on the slave directly
2020-09-23 10:21:45 -05:00
David Hall
dac4fccc48 MCOL-4306 don't compare string as signed int 2020-09-22 14:59:20 -05:00
Patrick LeBlanc
9693ecd28a Merge pull request #1452 from mariadb-corporation/publish-latest-build
ci: rework publish steps
2020-09-17 13:14:19 -05:00
mariadb-RomanNavrotskiy
810517c810 ci: rework publish steps 2020-09-17 18:32:22 +02:00
Gagan Goel
234c2eb740 MCOL-4285 In replication, perform LDI on the slave directly
into the columnstore table, and not into the cache.

LDI performed on a master, comes in as a SQLCOM_END sql_command
on the slave, when binlog_format != STATEMENT. If the cache already
had some records, we were earlier flushing the cache for the LDI
on the slave. This patch detects whether we are in the slave
thread or not, if so, then we don't do a cache flush if
sql_command = SQLCOM_END.
2020-09-16 16:34:07 -04:00
Roman Nozdrin
1c94e310ff Merge pull request #1449 from tntnatbry/MCOL-4282
MCOL-4282 Enable Select Handler for Prepared Statements
2020-09-14 11:07:42 +03:00
Roman Nozdrin
97cf9ad6d7 Merge pull request #1446 from mariadb-corporation/develop-bar-mcol-4303
MCOL-4303 UPDATE..SET using another table is not updating
2020-09-14 09:29:47 +03:00
Gagan Goel
a117786027 MCOL-4282 Enable Select Handler for Prepared Statements
This patch enables select handler for executing prepared
statements. Most importantly, we are now activating a
persistent arena which will allocate any new items in a
permanent MEMROOT for prepared statements and stored procedures.
Refer to JOIN::optimize_inner() for details.

In processWhere(), we now use SELECT_LEX::prep_where in case
we are executing a prepared statement, as this is where the saved
WHERE clause is stored for prepared statement processing.

In addition, we also disable derived handler for prepared
statements.
2020-09-11 16:35:51 -04:00
Jose Rojas
1a214aee1a Merge pull request #1448 from benthompson15/MCOL-4191-dev
MCOL-4191-develop
2020-09-11 15:14:13 -05:00
benthompson15
7a1f374b98 use jemalloc included with columnstore unless system provides it. 2020-09-11 13:09:45 -05:00
benthompson15
83f5ff5723 MCOL-4191: Install jemalloc.so with columnstore 2020-09-11 13:09:31 -05:00
Alexander Barkov
7f6ad16728 MCOL-4303 UPDATE..SET using another table is not updating
The change for MCOL-4264 erroneously added the "lock_type" member
to cal_connection_info, which is shared between multiple tables.
So some tables that were opened for write erroneously identified
themselves as read only.

Moving the member to ha_mcs instead.
2020-09-11 12:26:26 +04:00
Roman Nozdrin
62ef0dafe1 Merge pull request #1444 from jmrojas2332/MCOL-4012
MCOL-4012 change ownership of files to mysql
2020-09-10 11:41:42 +03:00
Jose Rojas
fbef0527d1 MCOL-4012 change ownership of files to mysql 2020-09-09 18:53:56 -05:00
Gagan Goel
a35be51cc6 Merge pull request #1433 from dhall-MariaDB/MCOL-3464
MCOL-3464 don't dereference a NULL String.
2020-09-09 12:25:20 -04:00
David.Hall
9052a88fc9 Merge pull request #1439 from mariadb-corporation/develop-mcol-4264
MCOL-4264 [Cross-Engine] UPDATE to INNODB table with WHERE clause usi…
2020-09-08 14:12:28 -05:00
Jose Rojas
9ac4e756fd Merge pull request #1424 from drrtuy/MCOL-4295
MCOL-4295 Replace hardcoded paths with dynamic ones
2020-09-08 09:26:59 -05:00
Jose Rojas
177ca584cf Merge pull request #1437 from drrtuy/MCOL-4012-brm-privs
MCOL-4012 Change BRM files owner
2020-09-08 09:11:20 -05:00
Roman Nozdrin
a716571996 Merge pull request #1428 from dhall-MariaDB/MCOL-4108
MCOL-4108 For functions not found, send not supported error
2020-09-08 14:05:21 +03:00
Alexander Barkov
f00cc571b5 MCOL-4264 [Cross-Engine] UPDATE to INNODB table with WHERE clause using Columnstore as sub query failing
Problem:

When processing cross-engine queries like:

update cstab1 set a=100 where a not in (select a from innotab1 where a=11);
delete from innotab1  where a not in (select a from cstab1 where a=1);

the ColumnStore plugin erroneously executed the whole query inside
ColumnStore.

Fix:

- Adding a new member cal_connection_info::lock_type and setting it
  inside ha_mcs_impl_external_lock() to the value passed in the parameter
  "lock_type".

- Adding a method cal_connection_info::isReadOnly() to test
  if the last table lock made in ha_mcs_impl_external_lock()
  for done for reading.

- Adding a new condition checking cal_connection_info::isReadOnly() inside
  ha_mcs_impl_rnd_init(). If the current table was locked last time for reading,
  then doUpdateDelete() should not be executed.
2020-09-08 07:06:52 +04:00
Roman Nozdrin
84e79eef48 MCOL-4012 Change BRM files owner 2020-09-07 14:07:09 +00:00
David Hall
890846fa8a MCOL-3464 don't dereference a NULL String. 2020-09-04 16:31:20 -05:00
benthompson15
94c45d00ba Merge pull request #1432 from pleblanc1976/remove-special-quotes
Replaced the special quotes in storagemanager.cnf with regular ascii
2020-09-04 16:16:52 -05:00
Patrick LeBlanc
9bc0f2e5ab Replaced the special quotes in storagemanager.cnf with regular ascii
ones.
2020-09-04 16:46:27 -04:00
David Hall
a7fef967c4 MCOL-4108 For functions not found, send not supported error 2020-09-04 15:27:47 -05:00
Patrick LeBlanc
2f4fd482db Merge pull request #1422 from drrtuy/lost-commit
Changes needed by community ASAN BB builders
2020-09-04 15:03:05 -05:00
Patrick LeBlanc
20b887500d Merge pull request #1427 from jmrojas2332/MCOL-4012
MCOL-4012 Related. Run SM as non-root user mysql by default
2020-09-04 15:01:12 -05:00
Jose Rojas
a5b7e8480a MCOL-4012 Related. Run SM as non-root user mysql by default 2020-09-04 13:22:34 -05:00
Roman Nozdrin
75082659ad MCOL-4295 Replace hardcoded paths with dynamic ones 2020-09-04 11:49:42 +00:00
Roman Nozdrin
2a553260f4 Changes needed by community ASAN BB builders 2020-09-04 11:28:05 +00:00