1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00
Commit Graph

6463 Commits

Author SHA1 Message Date
Rucha Deodhar
313b4c2212 Merge branch 'stable-23.10' into json_depth-rucha 2025-06-03 16:29:29 +05:30
Rucha Deodhar
53870ac06f json_depth 2025-06-03 15:56:47 +05:30
Timofey Turenko
b2c0106c93 set charset to utf8mb4 in the oracle.fuct_concat_oracle test 2025-06-03 01:05:08 +04:00
Leonid Fedorov
5cb7a4ac4c chore(compilatiaon): proper use of plugin_ref 2025-06-02 15:39:42 +04:00
drrtuy
44d1698639 chore(plugin): move having and group by into separate routines 2025-06-02 12:11:41 +01:00
drrtuy
600f10c259 chore(plugin): move order by processing 2025-06-02 12:11:41 +01:00
drrtuy
bb13688ccf chore(plugin): move projection processing into a separate part. 2025-06-02 12:11:41 +01:00
Leonid Fedorov
bb833ac9f6 chore(build) : fix debug build with MYSQL_VERSION_ID >= 10090 2025-05-30 19:08:35 +04:00
Leonid Fedorov
aa7e0fb9b4 Deep build refactoring phase 1 (#3562)
* configcpp refactored
* logging and datatypes refactored

* more dataconvert
* chore(build): massive removals, auto add files to debian install file
* chore(codemanagement): nodeps headers, potentioal library
* chore(build): configure before autobake
* chore(build): use custom cmake commands for components, mariadb-plugin-columnstore.install generated
* chore(build): install deps as separate step for build-packages
* more deps
* check  debian/mariadb-plugin-columnstore.install automatically
* chore(build): add option for multibracnh compilation
* Fix warning
2025-05-30 14:05:21 +04:00
Leonid Fedorov
06ae3c8d6a chore(ci): print agent name and link to search EC2 instance in clone-mdb step 2025-05-30 09:42:27 +04:00
drrtuy
35578f5f05 fix(): fix API return type difference b/w server versions. 2025-05-29 19:05:34 +01:00
drrtuy
7cf3003727 fix(formating): return to the original formatting 2025-05-29 19:05:34 +01:00
drrtuy
44040b4367 feat(plugin): Replaced THDVAR with more lightweight SYSVAR 2025-05-29 19:05:34 +01:00
drrtuy
9038f0df09 feat(plugin): All InnoDB queries are pushed down to Columnstore if columnstore_innodb_queries_uses_mcs = ON in the configuration before server start 2025-05-29 19:05:34 +01:00
drrtuy
11e5e481ab feat(plugin): fixup for side effects 2025-05-29 19:05:34 +01:00
drrtuy
7b02299f50 feat(plugin): unconditional innodb into MCS pushdown 2025-05-29 19:05:34 +01:00
Leonid Fedorov
dc4ca8d588 MCOL-5943: MCOL-4740 update rows counter for multi-table update (#3555)
* fix(plugin): MCOL-4740: This fixes update rows counter for multi-table update
For UPDATEs involving a single table, the server call to handler::direct_update_rows() is used to correctly set the count for the number of updated rows in the UPDATE statement.
However, for UPDATEs involving multi-tables, the server does not call handler::direct_update_rows(). This patch adds support to correctly report the number of updated rows to the client by setting
multi_update::updated and multi_update::found in handler::rnd_end().

* fix(plugin): MCOL-4740: this is to addres the original patch QA found in the original patch

---------

Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
Co-authored-by: drrtuy <roman.nozdrin@mariadb.com>
2025-05-29 14:23:37 +01:00
aleksei.bukhalov
feb919f2ad MCOL-5994 smoke step to bash scripts 2025-05-28 00:16:13 +04:00
Leonid Fedorov
b555cf605e chore(ci): test222 disabled temporary 2025-05-25 22:59:14 +04:00
Leonid Fedorov
e202f4b076 chore(build): reenter fixes 2025-05-23 18:21:56 +04:00
Leonid Fedorov
788f84d05d chore(build): alien flag to turn off Werror and proper graphs 2025-05-23 16:59:13 +04:00
drrtuy
806c3abc78 feat(BRM,oids): add a tool to reclaim OID space parts. (#3524)
* feat(BRM,oids): add a tool to reclaim OID space parts.


---------

Co-authored-by: = <=>
Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
Co-authored-by: Leonid Fedorov <79837786+mariadb-LeonidFedorov@users.noreply.github.com>
2025-05-23 05:53:09 +04:00
Leonid Fedorov
14ac14b35d The 10.6 server changed the name of the include.
ref: MariaDB/server@3a33ae8

Noticed thanks to @LinuxJedi
2025-05-23 05:37:06 +04:00
Leonid Fedorov
5814a80b50 MCOL-4671: MCOL-4622: fix the behavior of both PRs
first was playing different with RIGHT and LEFT functions(using the getUintVal and getIntVal accordingly)
https://github.com/mariadb-corporation/mariadb-columnstore-engine/pull/3234
second introduced round for ints from double, but added it to uint but not to int missing long doubles as well
https://github.com/mariadb-corporation/mariadb-columnstore-engine/pull/3480
2025-05-23 05:12:17 +04:00
Leonid Fedorov
842ec9dbff chore(build): fix duplicating hasRollup 2025-05-23 05:12:17 +04:00
Aleksei Antipovskii
221ccfd5b6 fix(dbcon): MCOL-4756: having not() provokes an ERROR 2013
The `NOT()` function in the HAVING clause was handled
    incorrectly, which caused the server to crash.
2025-05-23 05:12:17 +04:00
Leonid Fedorov
13b23e8510 chore(codestyle): MCOL-5405: repace windows CRLF with virtious linux one 2025-05-23 05:12:17 +04:00
Alexander Presnyakov
2e61c9909b Added more tests 2025-05-23 05:12:17 +04:00
Alexander Presnyakov
0b0dd27fda fix(mcol-4499): Correct handling of LIKE/NOT LIKE NULL 2025-05-23 05:12:17 +04:00
Serguey Zefirov
3bb2496ca1 fix: MCOL-5755: incorrect handling of BLOB (and TEXT) in GROUP BY
BLOB fields did not work as grouping keys at all, they were assigned
value NULL for any value, be it NULL or not. The fix is in the
rowaggregation.cpp in the initMapping(), a switch/case branch was added
to handle BLOB field copying there.

Also, TEXT columns did not distinguish between NULL and empty string in
the grouping algorithm, now they do. The fix is in the equals()
function, now we specifically check for isNull() equality between
values.
2025-05-23 05:12:17 +04:00
Alexander Presnyakov
6d1c6d8242 fix(funcexp): MCOL-4671 Fix behaviour of LEFT/RIGHT functions when negative trim length value is passedB 2025-05-23 05:12:17 +04:00
Leonid Fedorov
bfe49a8345 bug(priproc) make last_day type a bit more accurate
This fixes discrepance with the server, which assigns DATE type to
last_day()'s result.

Now we also assigns DATE result type and, also, use proper
dataconvert::Day data structure to return date.

Tests agree with InnoDB.

Also, this patch includes test for MCOL-5669, to show we fixed it.
2025-05-23 05:12:17 +04:00
Sergey Zefirov
ef451af860 feat(ddl): MCOL-5744: better handling of utf8 charset aliases (#3174)
Server expands ut8_XXX aliases to utf8mb3_XXX or utf8mb4_XXX depending
on the UTF8_IS_UTF8MB3 setting in the OLD_MODE environment variable.

Server already has the necessary code implemented in the get_utf8_flag()
method of class THD. There are several uses of this flag and all we have
to do to be in line with server is to use it.

This patch does that for DDL as work on MCOL-5705 uncovered some
problems in that area.
2025-05-23 05:12:17 +04:00
Denis Khalikov
3d2b329a2f fix(em): MCOL-5732 Add missing system OID to RebuildEM tool (#3168) 2025-05-23 05:12:17 +04:00
Sergey Zefirov
5f6080e09c fix(join): Fixes MCOL-5056, an error of joining TEXT column from InnoDB (#3160)
We incorrectly identified TEXT columns from external tables as BLOB.
Alexander Barkov suggested a way to discriminate them which I
implemented here.
2025-05-23 05:12:17 +04:00
Sergey Zefirov
11324c468d feat(primproc,aggregegation)!: Changes for ROLLUP with single-phase aggregation (#3025)
The fix is simple: enable subtotals in single-phase aggregation and
disable parallel processing when there are subtotals and aggregation is
single-phase.
2025-05-23 05:12:17 +04:00
Aleksei Antipovskii
0f202fb633 fix(plugin): MCOL-5703 fix server crash on 'UNION ALL VALUES' queries
Such queries are not supported by the ColumnStore anyway.
2025-05-23 05:12:17 +04:00
Aleksei Antipovskii
d02e2854ae Add test case 2025-05-23 05:12:17 +04:00
Leonid Fedorov
63b93c607d chore(ci): disable upgrade tests temporary 2025-05-23 01:52:29 +04:00
Leonid Fedorov
45ed833d72 delete server version dependency hack 2025-05-23 01:33:45 +04:00
Leonid Fedorov
f919c00479 fixing exec_program warning 2025-05-23 01:33:45 +04:00
Leonid Fedorov
d8a9617312 set only one config dir, as LAYOUT_STANDALONE works with the same one, forcing color
inside bootstrap
2025-05-23 01:33:45 +04:00
Leonid Fedorov
a359a8f7b8 chore(build): fix MDB SOURCE vs BUILD path usages, cmakeflags sortes 2025-05-23 01:33:45 +04:00
Leonid Fedorov
0359a1fd3a chore(server_support): fixes to build columnstore branch with server >= 11.5 2025-05-22 17:14:38 +04:00
Leonid Fedorov
1c8984fbf6 chore(build): mmap options to support TSAN build 2025-05-22 02:23:13 +04:00
Leonid Fedorov
37728081e1 chore(build): compile commands 2025-05-22 02:23:13 +04:00
Leonid Fedorov
bab4578118 bug(memory): add uint128_t specializations for Row::setBinaryField_offset and Row::setBinaryField as we have segfault woth ubsan build 2025-05-21 21:59:08 +04:00
Leonid Fedorov
10c2ce0dd5 chore(memory): fix dynamic stack buffer overflow 2025-05-21 21:59:08 +04:00
Leonid Fedorov
b65a5a1ef9 chore(build): turn off WError for ASAN builds as gcc STL has internal warnings last 3 years: https://gcc.gnu.org/bugzilla/show_bug.cgi\?id\=105562 2025-05-21 21:59:08 +04:00
Alexey Antipovsky
bd0f59910a feat(PrimProc): MCOL-5950 Improve disk-based aggregation finalization (#3525)
* feat(PrimProc): MCOL-5950 Improve disk-based aggregation finalization

    Iterate over the rows in the plain vector of RGData instead of
    iterating over the hashmap. This reduces the complexity and speeds
    up finalization (by up to the twice in the certain cases)

* replace magic constant with muggle constant
2025-05-21 10:53:48 +01:00