1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00

6347 Commits

Author SHA1 Message Date
Sergey Zefirov
7ec8f3df9a
MCOL-5772: incorrect ORDER BY ordering for a columns not in GROUP BY (#3214)
When ORDER BY column is not in GROUP BY, is not an aggregate and there
is a SELECT column that is also not an aggregate, there was a problem:
ordering happened on the SELECTed column, not ORDERed one.

This patch fixes that particular problem and also performs some tidying
around newly added aggregate.
2024-06-25 16:10:27 +04:00
Denis Khalikov
2444f96b11
Merge pull request #3202 from denis0x0D/MCOL-5708
MCOL-5708 Calculate precision and scale for constant decimal.
2024-06-24 11:16:58 +03:00
mariadb-AlanMologorsky
d2742b5a1b MCOL-5618: Fix packaging.
[mv] extra/cs_package_manager.sh -> cmapi/scripts/cs_package_manager.sh to pack and deliver the script with cmapi package
[add] cs_package_manager.sh to cmapi package
[fix] download paths for mcs_backup_manager.sh and cs_package_manager.sh
2024-06-21 05:47:13 +03:00
Alan Mologorsky
116711e9c1
fix(save-brm): MCOL-5709: Review fix. (#3207)
[fix] if file_path_prefix is None throwing TypeError
2024-06-20 10:50:22 +01:00
Ziyi Tan
604282789c
fix(bootstrap_mcs): check directory existence before cp (#3208) 2024-06-20 13:47:04 +04:00
Alan Mologorsky
4da9bcdccf
feat(save_brm)!: MCOL-5709: protect from S3/NFS IO errors (#3206)
* feat(save_brm)!: protect from S3/NFS IO errors

* feat(save_brm)!: future refactoring

* cleanup

* feat(save_brm)!: forgotten template

* feat(save-brm,ci)!: python3 package for rocky8

---------

Co-authored-by: Roman Nozdrin <roman.nozdrin@mariadb.com>
2024-06-18 18:42:01 +01:00
mariadb-AlanMologorsky
0e17e14afb remove old file 2024-06-18 14:02:53 +03:00
mariadb-AlanMologorsky
3934819ce1 Intermediate commit to move changes from old filepath to the new one. 2024-06-18 14:02:53 +03:00
Allen Herrera
af7b14ab37 update to the latest mcs_backup_manager + cs_package_manager 2024-06-18 14:02:53 +03:00
Sergey Zefirov
1122b64cb1
MCOL-4234: improve GROUP BY and ORDER BY interaction (#3194)
This patch fixes the problem in MCOL-4234 and also generally improves
behavior of GROUP BY.

It does so by introducing a "dummy" aggregate and by wrapping columns
into it. This allows for columns that are not in GROUP BY to be used
more freely, for example, in SELECT * FROM tbl GROUP BY col - all
columns that are not "col" will be wrapped into an aggregate and query
will proceed to execution.

The dummy aggregate itself does nothing more than remember last value
passed into it.

There also an additional error message that tries to explain what types
of expressions can be wrapped into an aggregate.
2024-06-17 20:00:54 +03:00
Denis Khalikov
b1045d27b6
fix(funcexp): MCOL-5237 Proper handle DATETIME column for "ifnull" function. (#3196) 2024-06-17 12:09:14 +01:00
drrtuy
113d9873a3
Containers memory limits for CI (#3108)
Limit test containers by memory, fix cgroup path inside the containers by introducing new ugly setting name 

---------

Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
2024-06-16 19:16:23 +04:00
mariadb-AlanMologorsky
f42411b6d1 MCOL-5618: Minor fixes to sync after PR #1398.
[add] -ssm argument for dbrm backup
[add] -sdbk -ssm arguments for dbrm restore
[add] silenece annoying pylint warning unused argument for bachup_commands.py and restore_commnads.py
2024-06-14 15:12:21 +03:00
Denis Khalikov
ccb7ba5914 MCOL-5708 Calculate precision and scale for constant decimal.
This patch calculates precision and scale for constant decimal
value for SUM aggregation function.
2024-06-11 15:48:46 +00:00
mariadb-AlanMologorsky
e5722b0f02 MCOL-5618: Minor fixes to sync after #3147
[add] -r option for backup command
2024-06-07 17:53:01 +03:00
mariadb-AlanMologorsky
52f7d07766 MCOL-5618: Minor improvements to sync with PR 3144.
[add] -ns option for dbrm_restore.
2024-06-07 17:51:05 +03:00
Allen Herrera
a69d4c3a6c add comment to auto_select_most_recent_backup_for_incremental in mcs_backup_manager.sh 2024-06-07 09:06:14 +03:00
Allen Herrera
815b29b2ed resolved PR comments for cs_package_manager.sh & mcs_backup_manager.sh 2024-06-07 09:06:14 +03:00
Allen Herrera
331d578824 Added backup retention flag -r and incremental auto_most_recent option to mcs_backup_manager.sh 2024-06-07 09:06:14 +03:00
Allen Herrera
e235759dae added dbrm_restore for LocalStorage & S3 2024-06-07 09:06:14 +03:00
Allen Herrera
2f17c819a2 resolved PR comments for cs_package_manager.sh & mcs_backup_manager.sh 2024-06-07 07:20:25 +03:00
Allen Herrera
66996bec22 small comment cleanup 2024-06-07 07:20:25 +03:00
Allen Herrera
f005c1d99a added dbrm_restore for LocalStorage & S3 2024-06-07 07:20:25 +03:00
mariadb-AlanMologorsky
c70d206afe MCOL-5618: Testing fix + script minor fixes.
- [fix] wrong cooking of .sh invoke string
- [fix] restore_dbrm -> dbrm_restore, backup_dbrm -> dbrm_backup to use same naming in both python wrapper and mcs_backup_manager.sh
- [fix] mathod of checking cmapi online or not in mcs_backup_manager.sh
2024-06-07 06:44:49 +03:00
Timofey Turenko
460826748f Add dependency on libxcrypt for Rocky/RHEL9 2024-05-28 15:47:29 +04:00
Denis Khalikov
254ced25cf Review fixes 2024-05-23 00:01:34 +04:00
Denis Khalikov
c17f24b90f MCOL-5352 Properly handle PP restart for DML/DDL operations. 2024-05-23 00:01:34 +04:00
Roman Nozdrin
e43472aedc fix(cmapi): handle an exception seen in CMAPI at RHEL 8 2024-05-21 16:17:03 +04:00
Denis Khalikov
180e1f793f MCOL-5746 Cpimport: convert blob data from ascii hex when reads from STDIN 2024-05-17 19:30:40 +04:00
Denis Khalikov
0a118292eb Revert "fix(datatypes,cpimport)!: MCOL-5746 Do not convert ascii to binary fo…"
This reverts commit f75baa8a40a95ce7f1bf91aa61c51768de4adc9a.
2024-05-16 18:49:16 +04:00
Timofey Turenko
5ca68831fb enable mariadb-backup Debian packaging and disable TTY for Docker exec in regression test 2024-05-16 17:12:54 +04:00
Daniel Black
c01ab42e87 MCOL-5747 gcc-14.1.1 compile error - calloc - transposed args
The arguments of calloc are the number of members and the sizeof the
member. Gcc-14.1.1 worked out how to tell the difference.

We correct this by transposing to gcc's will.
2024-05-16 16:53:52 +04:00
Denis Khalikov
f75baa8a40
fix(datatypes,cpimport)!: MCOL-5746 Do not convert ascii to binary for the "BLOB" data type (#3175) 2024-05-16 10:53:42 +01:00
Sergey Zefirov
49541993f4
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.
2024-05-15 16:04:10 +01:00
Allen Herrera
5b982469a2 added mcs-storagemanager journal output for S3 --logs bundle 2024-05-13 21:14:21 +04:00
Sergey Zefirov
5b9ddd902e
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.
2024-05-10 17:17:57 +01:00
Susil Kumar Behera
8204c131bf
fix(CI): Docker multinode provision script expects container names in the cli (#3172)
Co-authored-by: mariadb-SusilBehera <root@susil-centos7.c.columnstore-test.internal>
2024-05-07 18:30:47 +03:00
Denis Khalikov
1795065ddb
fix(em): MCOL-5732 Add missing system OID to RebuildEM tool (#3168) 2024-04-27 22:50:02 +03:00
Alan Mologorsky
fd612d2578
fix(cmapi): MCOL-5594: Fix after testing.. (#3150)
- [fix] wrong invoke already imported constants and function from signal lib
2024-04-19 12:29:16 +03:00
Leonid Fedorov
fe0f77a1a8 sorted mtr results 2024-04-18 18:31:30 +03:00
Leonid Fedorov
71185efe54 Fixed review notices, added the loop over selects, to collect error on more tnan two selects 2024-04-18 18:31:30 +03:00
Leonid Fedorov
8efdee6eca apply clang-format 2024-04-18 18:31:30 +03:00
Leonid Fedorov
904ac415e4 fix(plugin) MCOL-5699: throw error for unimplemented INTERSECT and EXCEPT 2024-04-18 18:31:30 +03:00
Leonid Fedorov
a8d3fff79e chore(build) Rocky8 gcc vanilla build fix 2024-04-16 17:08:06 +03:00
Leonid Fedorov
b79c34b90e Fix MTR mcol-5236 2024-04-16 17:06:26 +03:00
Denis Khalikov
1c88a7fcd8 MCOL-5597 Rollback changes introduced for DJS.
This patch changes:
1. The number of buckets created on each split.
2. The heuristic which calculates the bucket size.
2024-04-15 19:37:29 +03:00
Serguey Zefirov
3b7e69135d Fixes MCOL-5700, Oracle mode test results
This changeset contains fixes in Oracle mode tests and for the
implementation of the CONCAT_ORACLE. Also, we harmonise our
translation process with the recent changes in the server.

Due to changed behavior of the server, some CREATE VIEW/EXPLAIN
statements' results begun to output unexpected results and need to be
fixed.

Also, concatenation operation's name also changed. This lead to
disabled func_concat_oracle test to be enabled to test it and it
turned out that our implementation of this function was broken
and need to be fixed too.
2024-04-15 19:35:21 +03:00
Susil Kumar Behera
80ef84d4fd
Merge pull request #3166 from mariadb-corporation/MCOL-5328-qa-test
Add qa test for MCOL-5328
2024-04-12 20:30:13 +05:30
Susil Behera
28b957915d Add qa test for MCOL-5328 2024-04-12 11:10:50 +00:00
Alan Mologorsky
6844923b9a
feat(cmapi,cli): MCOL-5618: Add backup, restore, backup-dbrm, restore-dbrm commands for mcs cli tool. (#3130)
* MCOL-5618: Add backup, restore, backup-dbrm, restore-dbrm commands for mcs cli tool.

[add] mcs_cluster_tool/helpers.py file with cook_sh_arg function inside
[add] MCS_BACKUP_MANAGER_SH to mcs_cluster_tool/constants.py
[add] backup and restore commands to "mcs" Typer APP

* MCOL-5618: Move mcs_backup_manager.sh to cmapi/scripts.

* MCOL-5618: Install mcs_backup_manager.sh with CMAPI package.
2024-04-01 16:51:38 +03:00