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

6198 Commits

Author SHA1 Message Date
Leonid Fedorov
01f3ceb437 replace header guards with #pragma once 2022-01-21 15:24:58 +00:00
Leonid Fedorov
ab449ebcc0 .clang-format 2022-01-21 15:24:58 +00:00
Roman Nozdrin
489ae80b56 Merge pull request #2223 from drrtuy/MDEV-27519-crc32-dev
MDEV-27519 CRC32() upon Columnstore table returns a wrong value
2022-01-21 17:27:22 +03:00
Marko Mäkelä
15da99477e MDEV-27519 CRC32() upon Columnstore table returns a wrong value
Func_crc32::getIntVal(): Support the 2-ary CRC32() variant (MDEV-27208).
Also, do not assume that the string contains no NUL bytes.
2022-01-21 09:35:19 +00:00
Roman Nozdrin
cc850bfe08 Merge pull request #2221 from mariadb-corporation/develop-10.8
upd branch mapping: add 10.8
2022-01-19 21:42:22 +03:00
mariadb-RomanNavrotskiy
121c359238 upd branch mapping: add 10.8 2022-01-19 13:29:46 +02:00
Roman Nozdrin
91b38d279d Merge pull request #2217 from drrtuy/develop-version-8
Bumped VERSION to 8.1.1
2022-01-18 12:48:30 +03:00
Roman Nozdrin
f58c930e92 Bumped VERSION to 8.1.1 2022-01-18 08:35:09 +00:00
Roman Nozdrin
7cfcdf365d Merge pull request #2211 from drrtuy/MCOL-4899-dev
MCOL-4899 MCS now applies a correct collation running IN for characte…
2022-01-06 21:08:11 +03:00
Roman Nozdrin
29f3fea118 Merge pull request #2213 from tntnatbry/MCOL-4936
MCOL-4936 Disable binlog for DML statements.
2022-01-06 13:17:29 +03:00
Roman Nozdrin
05897948e4 MCOL-4899 MCS now applies a correct collation running IN for character data types 2022-01-05 12:00:01 +00:00
Gagan Goel
195425924d MCOL-4936 Disable binlog for DML statements.
DML statements executed on the primary node in a ColumnStore
cluster do not need to be written to the primary's binlog. This
is due to ColumnStore's distributed storage architecture.

With this patch, we disable writing to binlog when a DML statement
(INSERT/DELETE/UPDATE/LDI/INSERT..SELECT) is performed on a ColumnStore
table. HANDLER::external_lock() calls are used to
  1. Turn OFF the OPTION_BIN_LOG flag
  2. Turn ON the OPTION_BIN_TMP_LOG_OFF flag
in THD::variables.option_bits during a WRITE lock call.

THD::variables.option_bits is restored back to the original state
during the UNLOCK call in HANDLER::external_lock().

Further, isDMLStatement() function is added to reduce code verbosity
to check if a given statement is a DML statement.

Note that with this patch, not writing to primary's binlog means
DML replication from a ColumnStore cluster to another ColumnStore
cluster or to another foreign engine will not work.
2022-01-04 17:31:59 +00:00
Roman Nozdrin
edf404724c Merge pull request #2210 from drrtuy/MCOL-3721-dev
The goal is to migrate the last offending regr test001 test case into…
2021-12-31 14:33:14 +03:00
Roman Nozdrin
4297d5f8b3 Merge pull request #2207 from denis0x0D/error_handle_dev
Handle error during parsing of bytestream.
2021-12-30 22:25:00 +03:00
Roman Nozdrin
695b437730 The goal is to migrate the last offending regr test001 test case into MTR to make test001 green 2021-12-30 19:12:58 +00:00
Denis Khalikov
1b6d278404 Handle error during parsing of bytestream.
The error can occur in case we send the bytestream with `old` format header.
2021-12-30 12:30:21 +03:00
Roman Nozdrin
b3ab3fb514 Merge pull request #2203 from mariadb-AlexeyAntipovsky/auto-query-stats
[MCOL-4944] Automatically enable stats collection
2021-12-23 15:13:43 +03:00
Roman Nozdrin
94806e7ee0 Merge pull request #2200 from drrtuy/MCOL-4943-dev
MCOL-4943 Moved SQL script call into columnstore-post-install
2021-12-21 11:18:07 +03:00
Alexey Antipovsky
683a6b3d19 [MCOL-4944] Automatically enable stats collection
if it is enabled in the config
2021-12-21 11:15:25 +03:00
Roman Nozdrin
82e6c50b3e Merge pull request #2202 from tntnatbry/MCOL-4264-testcases
MCOL-4868 Move test cases for MCOL-4264 to MTR.
2021-12-21 09:13:58 +03:00
Gagan Goel
8cab54fe31 MCOL-4868 Move test cases for MCOL-4264 to MTR. 2021-12-20 18:34:08 +00:00
Roman Nozdrin
41f4b9ef65 Merge pull request #2198 from drrtuy/MCOL-4871-dev
Mcol 4871 dev
2021-12-18 07:03:11 +03:00
Roman Nozdrin
22b0e4addc MCOL-4943 Moved SQL script call into columnstore-post-install 2021-12-18 03:59:58 +00:00
Roman Nozdrin
a31066ff0e MCOL-4871 This patch adds relevant tests 2021-12-17 17:41:07 +00:00
Roman Nozdrin
7b5845a4aa MCOL-4871 Bar's patch to do proper extent elimination for short CHAR 2021-12-17 17:41:03 +00:00
Roman Nozdrin
753fc26dda Merge pull request #2196 from tntnatbry/MCOL-4868
MCOL-4868 UPDATE on a ColumnStore table containing an IN-subquery
2021-12-17 08:00:24 +03:00
Gagan Goel
7f456e58cc MCOL-4868 UPDATE on a ColumnStore table containing an IN-subquery
on a non-ColumnStore table does not work.

As part of MCOL-4617, we moved the in-to-exists predicate creation
and injection from the server into the engine. However, when query
with an IN Subquery contains a non-ColumnStore table, the server
still performs the in-to-exists predicate transformation for the
foreign engine table. This caused ColumnStore's execution plan to
contain incorrect WHERE predicates. As a fix, we call
mutate_optimizer_flags() for the WRITE lock, in addition to the READ
table lock. And in mutate_optimizer_flags(), we change the optimizer
flag from OPTIMIZER_SWITCH_IN_TO_EXISTS to OPTIMIZER_SWITCH_MATERIALIZATION.
2021-12-16 23:11:26 +00:00
Roman Nozdrin
6144e6ff99 Merge pull request #2195 from mariadb-AlexeyAntipovsky/ddlproc_conbug_dev
[MCOL-4927] Fix DDLProc connection processing
2021-12-16 18:55:55 +03:00
Alexey Antipovsky
6c31f105ec [MCOL-4927] Fix DDLProc connection processing 2021-12-16 16:36:55 +03:00
Roman Nozdrin
4e6dba2d42 Merge pull request #2180 from drrtuy/MCOL-4832-dev
MCOL-4832 Removing needless error output
2021-12-15 19:21:50 +03:00
Roman Nozdrin
199d89f681 MCOL-4832 Removing needless error output 2021-12-15 10:35:03 +00:00
Roman Nozdrin
e8bf1f10a2 Merge pull request #2189 from mariadb-corporation/werror
Turn on Werror
2021-12-15 09:35:23 +03:00
Leonid Fedorov
d0e1b721f3 Turn on Werror 2021-12-14 18:43:08 +03:00
Roman Nozdrin
6c82951158 Merge pull request #2184 from mariadb-corporation/c7-pcre
centos 7 pcre2 build dep
2021-12-14 18:41:48 +03:00
Leonid Fedorov
01a06c0eba opensuse pcre2 build dep 2021-12-14 17:45:35 +03:00
Roman Nozdrin
34bd759241 Merge pull request #2183 from drrtuy/MCOL-4809-dev
Mcol 4809 dev
2021-12-14 17:32:09 +03:00
mariadb-RomanNavrotskiy
eea6ec2151 centos 7 pcre2 build dep 2021-12-10 17:52:16 +02:00
Roman Nozdrin
54a5623569 MCOL-4809 Review suggestions patch 2021-12-10 10:30:08 +00:00
Roman Nozdrin
af36f9940f This patch introduces support for scanning/filtering vectorized execution for numeric-based
data types TEXT, CHAR, VARCHAR, FLOAT and DOUBLE are not yet supported by vectorized path
This patch introduces an example for Google benchmarking suite to measure a perf diff
b/w legacy scan/filtering code and the templated version
2021-12-10 10:30:00 +00:00
Roman Nozdrin
cac23b0afc Merge pull request #2170 from tntnatbry/MCOL-4874
MCOL-4874 Crossengine JOIN involving a ColumnStore table and a
2021-12-09 09:59:01 +03:00
Gagan Goel
340a90fc8d MCOL-4874 Crossengine JOIN involving a ColumnStore table and a
wide decimal column in a non-ColumnStore table throws an exception.

ROW::getSignedNullValue() method does not support wide decimal fields
yet. To fix this exception, we remove the call to this method from
CrossEngineStep::setField().
2021-12-08 22:26:52 +00:00
Roman Nozdrin
25237b4ba8 MCOL-4750 This patch temporary disables autoConfigure b/c the server team doesn't like camel-case naming (#2166)
Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
2021-12-07 12:06:37 -06:00
Gagan Goel
d91cab2ff5 MCOL-4925 Suppress the warning message when a non-cached table is (#2164)
dropped with the insert cache enabled.
2021-12-06 11:27:37 -06:00
Roman Nozdrin
6f1c0d6c5a Merge pull request #2157 from denis0x0D/warnings
[MCOL-4849] Fix build warnings.
2021-11-25 12:14:07 -06:00
benthompson15
c2a86a38d7 Merge pull request #2162 from tntnatbry/MCOL-4855
MCOL-4855 Do not log debug/info/warning messages to stderr.
2021-11-22 15:18:02 -06:00
Gagan Goel
affb2ae770 MCOL-4769 Fix cache bugs. (#2151)
* MCOL-4769 Do not replay INSERTs and LDIs on the replica nodes when
the write cache is enabled.

* MCOL-4769 If a table is created with the write cache disabled
(i.e. when columnstore_cache_inserts=OFF), make it accessible when
the cache feature is enabled (columnstore_cache_inserts=ON).
2021-11-22 14:20:50 -06:00
Gagan Goel
99cad71f62 MCOL-4855 Do not log debug/info/warning messages to stderr. 2021-11-19 22:21:41 +00:00
David Hall
4ee1057374 Remove commented line
Changes to Columnstore.xml are causing issues with automated install scripts. Removing these minor changes will get us through the release. The problem shall be fixed with MCOL-4928
2021-11-19 11:28:59 -06:00
Denis Khalikov
f8bd566b0f [MCOL-4849] Fix build warnings. 2021-11-17 17:33:22 +03:00
Roman Nozdrin
3c65499820 Merge pull request #2138 from denis0x0D/MCOL-4849_full
[MCOL-4849] Parallelize the processing of the bytestream vector.
2021-11-04 18:03:13 +03:00