1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-26 11:48:52 +03:00

229 Commits

Author SHA1 Message Date
Gagan Goel
6f69194462 MCOL-4642 NOT IN subquery containing an isnull in the OR predicate crashes server.
InSub::handleFunc() was incorrectly exiting early for an IN subquery
containing an isnull predicate in the OR operation in the WHERE clause.
This patch properly handles the OR predicate containing an isnull/isnotnull
predicate in the WHERE clause. We don't remove the isnull operand from the
filter ParseTree in 6.x as the server no longer injects the isnull predicate
in the IN subquery due to MCOL-4617, where we moved the creation and injection
of in-to-exists predicate into the engine.
2021-06-03 01:34:14 -04:00
mariadb-RomanNavrotskiy
8a68adcac4 rename mtr disabled list files 2021-06-02 17:08:35 +02:00
Alexander Barkov
cad1b5fbba Part#3 : MCOL-4678 MTR tests fail because of /tmp and ./ with LOAD DATA
Some MTR test still failed when running without --extern

Fixing the following problems:
- Changing "--exec mariadb" to "--exect $MYSQL" to properly pass the socket
- Changing ./suite/columnstore/std_data/ to MTR_SUITE_DIR/../std_data/
- Changing "cpimport" to $MCS_CPIMPORT.
  Detecting and exporting a proper $MCS_CPIMPORT in suite.pm
2021-06-01 18:13:40 +04:00
David.Hall
d8607be776
Merge pull request #1953 from mariadb-corporation/bar-develop-mtr
MCOL-4736 Fix cross-engine tests to run without --extern
2021-06-01 08:54:31 -05:00
Sergey Zefirov
04d5b55c37 MCOL-4652 Fixes for wide-decimal support in bulk insert operations
Previously cpimport didn't send wide min/max-es talking to BRM
2021-05-31 18:40:57 +00:00
Alexander Barkov
aaef69040a MCOL-4736 Fix cross-engine tests to run without --extern 2021-05-28 08:41:19 +04:00
Alexander Barkov
d823b43932 MDEV-8334 Rename utf8 to utf8mb3
- Recording ColumnStore tests according to MDEV-8334 changes
- Fixing cs3_create_table_charset_collations to work without --extern
2021-05-26 08:00:19 +04:00
Gagan Goel
a8ceb1d090
Merge pull request #1938 from mariadb-corporation/bar-develop-MCOL-4276
MCOL-4726 Wrong result of WHERE char1_col='A'
2021-05-24 06:43:11 -04:00
Roman Nozdrin
8699d1d66e
Merge pull request #1891 from mariadb-SergeyZefirov/MCOL-4673-Regression-calShowPartition-returns-NA
Mcol 4673 regression cal show partition returns na
2021-05-24 12:10:55 +03:00
Alexander Barkov
284fc51bb7 MCOL-4726 Wrong result of WHERE char1_col='A' 2021-05-21 14:40:16 +04:00
Alexander Barkov
bd4cbb542d MCOL-4721 CHAR(1) is not collation-aware for GROUP/DISTINCT 2021-05-18 16:14:53 +04:00
Sergey Zefirov
47b1430121 Fixes to COMMIT operation logic to keep ranges in valid state 2021-05-17 14:23:43 +03:00
Roman Nozdrin
c6db1f9191
Merge pull request #1825 from tntnatbry/MCOL-4617
MCOL-4617 Move in-to-exists predicate creation and injection into the engine.
2021-05-07 13:33:02 +03:00
Roman Nozdrin
b9094c1b69
Merge pull request #1912 from tntnatbry/MCOL-4680-dev
MCOL-4680 FROM subquery containing nested joins returns an error.
2021-05-06 13:52:36 +03:00
Gagan Goel
3ed9993fe7 MCOL-4410 SELECT bypasses select handler if @variables are involved
in the query projection list.

With this patch, we enable SELECT/DERIVED handler execution for
queries involving 'get_user_var' function. Whereas for 'set_user_var'
function, the handlers are still disabled and the query execution
fallsback to the server, except for some edges case described in
the test file mcol-4410.test, in which case, an appropriate error
message is returned to the client.
2021-05-05 07:14:16 +00:00
Gagan Goel
78cca01dfa
Merge pull request #1899 from tntnatbry/MCOL-4612
MCOL-4612 A subquery with a union for DECIMAL and BIGINT returns zeros.
2021-05-03 02:52:23 -04:00
Gagan Goel
22c7fb7c01 MCOL-4680 FROM subquery containing nested joins returns an error.
Main theme of the patch is to fix joins processing in the plugin
code. We now use SELECT_LEX::top_join_list and process the nested
joins recursively, instead of SELECT_LEX::table_list struct which
we earlier used to build the join filters. The earlier approach
did not process certain nested join ON expressions, causing certain
queries to incorrectly error out such as that described in MCOL-4680.

In addition, some legacy code is also removed.
2021-05-03 06:28:27 +00:00
David.Hall
1ac4c36a62
Merge pull request #1887 from mariadb-corporation/bar-develop-MCOL-4678
Part#2 : MCOL-4678 MTR tests fail because of /tmp and ./ with LOAD DATA
2021-04-30 13:12:14 -05:00
David.Hall
6d138a4963
Merge pull request #1905 from benthompson15/MCOL-4044
MCOL-4044: Add oracle mode functions.
2021-04-30 10:13:17 -05:00
Gagan Goel
4e9307fa6d MCOL-4612 A subquery with a union for DECIMAL and BIGINT returns zeros.
In this patch, we set the unioned type to a wide decimal, if any of the
numeric columns involved in the union operation have a precision > 18
(which is also possible for BIGINT/UBIGINT types) and <= 38.
2021-04-30 12:33:33 +00:00
Alexander Barkov
2697c9bce7 MCOL-4687 Insert from view regression 2021-04-30 14:20:26 +04:00
Gagan Goel
f167a6e505 MCOL-4617 Move in-to-exists predicate creation and injection into the engine.
We earlier leveraged the server functionality provided by

Item_in_subselect::create_in_to_exists_cond and
Item_in_subselect::inject_in_to_exists_cond

to create and inject the in-to-exists predicate into an IN
subquery's JOIN struct. With this patch, we leave the IN subquery's
JOIN unaltered and instead directly perform this predicate creation
and injection into ColumnStore's select execution plan.
2021-04-30 07:57:00 +00:00
Gagan Goel
c3568412a9 MCOL-4543 Update the test files location from mtr/basic to
mysql-test/columnstore/basic.
2021-04-27 11:33:26 +00:00
Alexander Barkov
dad9c811fd Part#2 : MCOL-4678 MTR tests fail because of /tmp and ./ with LOAD DATA
This patch fixes failures in mtr (without --remote) in the following tests:

columnstore/basic.mcs88_import_export_csv
columnstore/basic.mcs47_cpimport_central_loc_sin_source
columnstore/basic.mcs49_cpimport_parallel_dist
columnstore/basic.mcs50_cpimport_stdin
columnstore/basic.mcs55_cpimport_binary_source
columnstore/basic.mcs56_cpimport_negative
columnstore/basic.mcs68_cpimport_datafile_separators
2021-04-23 17:09:10 +04:00
Alexander Barkov
d6e88cd82e MCOL-4693 ColumnStore MTR tests: FUNCTION mcs192_db.CORR does not exist 2021-04-22 18:29:08 +04:00
benthompson15
870d672efb MCOL-4044: Add oracle mode functions. 2021-04-21 16:07:42 -05:00
Alexander Barkov
ccd6b83be5 MCOL-4678 MTR tests fail because of /tmp and ./ with LOAD DATA
Also fixing the problem with missing UDFs for the affected tests.
(see MCOL-4659 for details):
When mtr runs without --remote, the UDFs must be installed inside
the test using CREATE FUNCTION.

Note, there are still more tests left with missing UDFs. They'll be
fixed separately.
2021-04-16 09:04:25 +04:00
Alexander Barkov
625af12c63 MCOL-4676 ColumnStore MTR tests: missing have_innodb.inc and unpredictable default_storage_engine 2021-04-15 11:53:53 +04:00
Alexander Barkov
75e3bbc31e MCOL-4674 Fix ColumnStore to run MTR tests in a build directory 2021-04-13 11:25:25 +04:00