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

268 Commits

Author SHA1 Message Date
7fd29de377 More disable tests in case of testing via Maxscale 2025-06-24 16:53:17 +04:00
1640e87058 disable tests incompatible with Maxscale 2025-06-24 16:53:17 +04:00
cfaeeeb449 disable warnings for all tests via Maxscale 2025-06-24 16:53:17 +04:00
4fe2329213 Add drop table t1 to the test to avoid failure if previous test forget to drop it 2025-06-24 16:53:17 +04:00
5a709e11a5 Add drop view v1 to the test to avoid failure if previous test forget to drop it 2025-06-24 16:53:17 +04:00
cfe95ea846 Fix mcs170_session_functions_maxscale test 2025-06-24 16:53:17 +04:00
b7dbf89482 skip all tests with LOAD DATA in case of tests via Maxscale 2025-06-24 16:53:17 +04:00
780e34680f MCOL-6022 fix unstable mtrs 2025-06-18 14:31:56 +04:00
07c2e51eb6 fix oracle.func_cncat_oracle test for 10.6 2025-06-04 12:00:45 +04:00
b2c0106c93 set charset to utf8mb4 in the oracle.fuct_concat_oracle test 2025-06-03 01:05:08 +04:00
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
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
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
13b23e8510 chore(codestyle): MCOL-5405: repace windows CRLF with virtious linux one 2025-05-23 05:12:17 +04:00
2e61c9909b Added more tests 2025-05-23 05:12:17 +04:00
0b0dd27fda fix(mcol-4499): Correct handling of LIKE/NOT LIKE NULL 2025-05-23 05:12:17 +04:00
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
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
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
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
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
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
d02e2854ae Add test case 2025-05-23 05:12:17 +04:00
d09b7496e4 Revert "fix(MCOL-5386): Bitwise aggregation functions do not work with wide d…"
This reverts commit e0f3bf8322.
2025-05-20 19:17:05 +04:00
e0f3bf8322 fix(MCOL-5386): Bitwise aggregation functions do not work with wide decimals (updated previous PR) (#3522)
* fix(MCOL-5386): Bitwise aggregation functions do not work with wide decimals (updated previous PR)

* MCOL-5386: Added test for Decimal(18)
2025-05-19 20:41:28 +01:00
bd1622f331 feat(MCOL-5886): support InnoDB's table partitions in cross-engine joins
The purpose of this changeset is to obtain list of partitions from
SELECT_LEX structure and pass it down to joblist and then to
CrossEngineStep to pass to InnoDB.
2025-04-23 08:24:10 +03:00
d5c8b98162 Merge pull request #3508 from mariadb-corporation/MCOL-5976-disable-warnings
disable warings in tests
2025-04-16 03:03:56 +03:00
ebbe067a79 Merge pull request #3509 from mariadb-corporation/MCOL-5978-remove_show_charset_vars
Remove SHOW VARIABLES LIKE 'character_set%' from the mcs228 test
2025-04-16 03:03:23 +03:00
8528fb2888 disable timestamp tests because of MCOL-5961 2025-04-16 03:08:24 +04:00
1fddc0c41c Remove SHOW VARIABLES LIKE 'character_set%' from the mcs228 test 2025-04-16 02:01:32 +03:00
e9a9d2165f disable warings in tests 2025-04-16 01:22:31 +03:00
b696e71caa preserve access rights and owner for data file in the cpimport test 2025-04-15 20:22:07 +04:00
00f04c0442 ignore stderr from 'yes' 2025-04-15 20:22:07 +04:00
67667d0a75 use to find data files 2025-04-15 20:22:07 +04:00
ef4780193b Fix test mcs7130_regression_bug3935 2025-04-15 20:21:31 +04:00
368ba3cdf7 Fix deprication warnings in the MTR with select * from .. into 2025-04-15 20:21:31 +04:00
8c8e3ab842 Fix deprication warnings in the MTR with select * from .. into 2025-04-15 20:21:31 +04:00
6a712dc0ad MCOL-5932: fix heap buffer overflow with minimal revert of MCOL-5776 breaking change (#3445) 2025-04-15 14:46:25 +01:00
c294c64bb0 chore(tests) lowercase database name due different distro settings 2025-04-11 19:10:37 +04:00
c618fa284d fix(PrimProc): MCOL-5394 JSON_ARRAYAGG in MCS works differently than in InnoDB 2025-04-11 15:21:07 +02:00
4bea7e59a0 feat(PrimProc): MCOL-5852 disk-based GROUP_CONCAT & JSON_ARRAYAGG
* move GROUP_CONCAT/JSON_ARRAYAGG storage to the RowGroup from
  the RowAggregation*
* internal data structures (de)serialization
* get rid of a specialized classes for processing JSON_ARRAYAGG
* move the memory accounting to disk-based aggregation classes
* allow aggregation generations to be used for queries with
  GROUP_CONCAT/JSON_ARRAYAGG
* Remove the thread id from the error message as it interferes with the mtr
2025-04-11 15:21:07 +02:00
fe0e67e8a1 MCOL-4607 add tests 2025-04-10 19:54:26 +04:00
3e20a3d566 MCOL-5890: DROP TABLE IF EXISTS should not generate errors for non existing tables 2025-04-08 20:30:01 +04:00
a6ab9bd615 fix(funcexp): MCOL-5386 Bitwise aggregation functions do not work with wide decimals (internal error) (#3485) 2025-04-08 16:47:47 +01:00
b8c0b74f2b fix(funexp): MCOL-4622 Implicit FLOAT->INT and DOUBLE->INT conversion is not like in InnoDB (#3480) 2025-04-04 21:28:16 +01:00
72480e512c MCOL-5922 add more datatypes for test 2025-04-02 19:54:47 +04:00
a329f4d428 Fix(MCOL-4607): SEC_TO_TIME(wideDecimal) returns 0 in DECIMAL context (#3474) 2025-03-31 15:05:07 +01:00
1bcf63a436 Fix(MCOL-4611): mod loses precision on huge narrow decimal (#3473) 2025-03-31 14:59:40 +01:00
8ca8119f36 fix(TNS): fix for duplicate DISTINCT output 2025-03-27 22:12:48 +00:00
90b4322470 feat(): propagated changes into SLTPoolAllocator and friends 2025-03-27 22:12:48 +00:00