MariaDB ColumnStore 1.4.2 Release Notes
Overview
MariaDB ColumnStore is a columnar storage engine. This is the first release in the ColumnStore 1.4 series. This release contains new features and fixes, compared to MariaDB ColumnStore 1.2.5.
This release of MariaDB ColumnStore is included with MariaDB Enterprise Server 10.4.11-5.
MariaDB ColumnStore 1.4.2 was released on 2020-01-06.
MariaDB Server Convergence
Until now, MariaDB ColumnStore has been maintained as a custom fork of MariaDB Server, to handle the unique way that queries are handled for distributed processing.
With this release, a joint project between the MariaDB Server and MariaDB ColumnStore engineering teams, ColumnStore now works as a pluggable storage engine on the standard MariaDB Enterprise Server 10.4 platform.
MariaDB Enterprise Server 10.4 includes distributed processing engine support features. These features are not present in the older 10.3 and 10.2 release series.
A standard MariaDB Server is now used for ColumnStore UM (User Module) nodes. ColumnStore users can now enjoy the benefits of MariaDB Server 10.4, and MariaDB Server 10.4 users are now able to deploy ColumnStore on top of their existing stack.
New Features
S3 Storage Manager
MariaDB ColumnStore now has the ability to use any object store that is Amazon S3 API compatible. The new Storage Manager uses a persistent disk cache for read/write operations so that it has minimal performance impact on ColumnStore. In some cases it will perform better than local disk operations.
Usage instructions:
Before running
postConfigure, edit thestoragemanager.cnfconfiguration file to specify the S3 connection parameters (as detailed in the S3 section of that file), and the local machine configuration (as detailed in the ObjectStorage and Cache sections). The configuration file is documented in-line. Enable the Storage Manager by setting ObjectStorage/Service to S3Run
postConfigure, and when promoted for type of storage, select theStorageManageroption.
cpimport S3 Support
cpimport is a high-speed bulk data loading utility for ColumnStore. cpimport now includes command-line options for loading a CSV file from Amazon S3 (and compatible) buckets.
-y
S3 Authentication Key
-K
S3 Secret Key
-t
S3 Bucket
-H
S3 Hostname (omit if using Amazon S3, this is the default)
-g
S3 Region
When these options are set, cpimport will use the path/filename provided to load an object from object storage instead of a local file. Current behavior is to download the entire file into memory before processing.
Expanded Data Type Support
TIMESTAMP (with
CURRENT_TIMESTAMP)
Please note that for cpimport the current system time of the PM node is used.
MODA() Mode Average UDAF
The MODA() UDAF (User-Defined Aggregate Function) determines the mode average. MODA() has tie-break behavior to use the closest to the average, and then the smallest absolute value.
Statement-Based Replication Support
Statement-based replication into ColumnStore tables is supported by setting columnstore_replication_slave=on on the UM that will apply the replication data. Row-based replication events on ColumnStore replica (slave) tables will currently fail, generating an error viewable with SHOW SLAVE STATUS
Notable Changes
Performance Enhancements
The performance of BRM (Block Resolution Manager) snapshots has been increased for improved performance when committing data to ColumnStore.
To reduce SSD wear and increase write performance for large data sets containing many columns, ColumnStore now allocates disk as-needed, writing only real data and padding to fill the remainder of an 8KB block. ColumnStore previously wrote twice -- once to pre-allocate an empty file for each new extent (8 million item file for a column), and a second time to fill the file with real data.
The outer "ORDER BY" of a query is now processed using ColumnStore's engine instead of MariaDB server. This uses a faster sorting algorithm for higher performance with larger result sets.
Joins use a new hash algorithm which is significantly faster and requires significantly less initial memory to execute.
Memory cleanup after query execution now occurs in a separate thread. This previously occurred in the main ExeMgr thread, which could delay execution of new queries.
InfiniDB Alias Eliminated
ColumnStore 1.2 and earlier included the InfiniDB engine as an alias. This alias has now been removed. All ColumnStore tables must now be created with the engine name "columnstore". All MariaDB system variables prefixed with "infinidb_" have now been removed.
vtable Replaced by Query Execution Handlers
vtable has been replaced with a set of query execution handlers: Select Handler, Derived Handler, and table API mode.
The vtable mode switch (infinidb_vtable_mode system variable) has been eliminated. Two new session variables have been added: columnstore_select_handler, columnstore_derived_handler
The Select Handler is the replacement for a vtable, and is the default query execution handler. It is expected to provide the fastest execution path for the whole query.
Select Handler lacks support for some vtable features, including:
Cartesian JOIN
Non-Equi JOIN
INSERT .. SELECT
SELECT INTO OUTFILE
If the Select Handler fails to execute a query, an error is returned. If a query fails under the Select Handler, set columnstore_select_handler=off for the session. This will cause the Server to hand-off query execution to the Derived Handler. The query must be restarted after the session variable has been set.
If the Derived Handler fails to execute a query, an error is returned. If a query fails under both the Select Handler and Derived Handler, set columnstore_select_handler=off and columnstore_derived_handler=off for the session. This will cause table API execution, an equivalent to disabled vtable mode in ColumnStore 1.2.x and earlier. The query must be restarted after the session variables have been set.
Deployment Methods
ColumnStore 1.4 is included with MariaDB Enterprise Server 10.4 on select Platforms.
ColumnStore is available for deployment from package tarball and repository. ColumnStore is not available for deployment from binary tarballs.
"Distributed Install" Method Eliminated
The "distributed install" method which pushed packages onto other nodes during postConfigure has been removed. ColumnStore packages must now be installed on all nodes prior to startup.
Configuration Path Changes
ColumnStore XML configuration files have moved to /etc/columnstore
MariaDB Enterprise Server configuration options for ColumnStore have moved to /etc/my.cnf.d/columnstore.cnf and the default MariaDB Enterprise Server my.cnf will load this file.
Data Directory Path Change
The ColumnStore data directory has moved to /var/lib/columnstore and is separate from the MariaDB Server data directory at /var/lib/mysql
Executable Path Changes
ColumnStore binaries have moved to /usr/bin or /usr/sbin, and the libraries are in the OS standard /usr library path. Some ColumnStore binaries have been renamed to avoid conflict, including:
post-install
columnstore-post-install
getConfig
mcsGetConfig
setConfig
mcsSetConfig
User Account for Cross-Engine Joins
Cross-engine joins depend on TCP connection from ExeMgr to the Server process. Since the database root user in MariaDB Enterprise Server 10.4 authenticates only by UNIX socket, a dedicated user must be created to support cross-engine joins. The cross engine section of Columnstore.xml should be edited accordingly.
Issues Fixed
Can result in data loss
DBRM files could be deleted during a failover scenario. (MCOL-2152)
Can result in a hang or crash
Certain window function queries could crash the Server process. (MCOL-3434)
Can result in unexpected behavior
group_concat()withDISTINCTconcatenates even non-distinct values. (MCOL-2146)Wrong results could be returned for a complex query with subquery and window functions over decimal(12,4) column. (MCOL-3423)
Pipe operator (|) could return wrong results. (MCOL-174)
Comparison of padded strings could provide incorrect results. (MCOL-1559)
CREATE TABLE could fail when table name contained space and certain characters; not
A-Z a-z 0-9 _(MCOL-2219)DISTINCTcould be performed in incorrect order relative to Window functions and UNION (MCOL-3492)cpimportoutputs value truncation warning when read buffer (-b) is set to1(MCOL-774)Cross-engine joins with query using
DISTINCTcould returnNULL(MCOL-3588)Bulk write API writes were possible when writes were suspended. (MCOL-3576)
JOINcould significantly waste memory. (MCOL-1758)Memory leaks. (MCOL-3621)
Related to install and upgrade
Cosmetic typo in
postConfigureoutput. Output upon success is nowMariaDB ColumnStore Install Successfully Completed, System is Active(MCOL-1598)
Known Issues
Performance of some queries, such as those containing UNION, may be worse than on ColumnStore 1.2.x.
Interface Changes
Columnstore_commit_hashstatus variable addedColumnstore_versionstatus variable addedcolumnstore_compression_typesystem variable addedcolumnstore_decimal_scalesystem variable addedcolumnstore_derived_handlersystem variable addedcolumnstore_diskjoin_bucketsizesystem variable addedcolumnstore_diskjoin_largesidelimitsystem variable addedcolumnstore_diskjoin_smallsidelimitsystem variable addedcolumnstore_double_for_decimal_mathsystem variable addedcolumnstore_group_by_handlersystem variable addedcolumnstore_import_for_batchinsert_delimitersystem variable addedcolumnstore_import_for_batchinsert_enclosed_bysystem variable addedcolumnstore_local_querysystem variable addedcolumnstore_orderby_threadssystem variable addedcolumnstore_ordered_onlysystem variable addedcolumnstore_replication_slavesystem variable addedcolumnstore_select_handlersystem variable addedcolumnstore_string_scan_thresholdsystem variable addedcolumnstore_stringtable_thresholdsystem variable addedcolumnstore_um_mem_limitsystem variable addedcolumnstore_use_decimal_scalesystem variable addedcolumnstore_use_import_for_batchinsertsystem variable addedcolumnstore_varbin_always_hexsystem variable addedColumnstore ha_columnstore.soplugin addedCOLUMNSTORE_COLUMNSinformation schema table addedCOLUMNSTORE_EXTENTSinformation schema table addedCOLUMNSTORE_FILESinformation schema table addedCOLUMNSTORE_TABLESinformation schema table addedmysqld --columnstore-columnscommand-line option addedmysqld --columnstore-compression-typecommand-line option addedmysqld --columnstore-decimal-scalecommand-line option addedmysqld --columnstore-derived-handlercommand-line option addedmysqld --columnstore-diskjoin-bucketsizecommand-line option addedmysqld --columnstore-diskjoin-largesidelimitcommand-line option addedmysqld --columnstore-diskjoin-smallsidelimitcommand-line option addedmysqld --columnstore-double-for-decimal-mathcommand-line option addedmysqld --columnstore-extentscommand-line option addedmysqld --columnstore-filescommand-line option addedmysqld --columnstore-group-by-handlercommand-line option addedmysqld --columnstore-import-for-batchinsert-delimitercommand-line option addedmysqld --columnstore-import-for-batchinsert-enclosed-bycommand-line option addedmysqld --columnstore-local-querycommand-line option addedmysqld --columnstore-orderby-threadscommand-line option addedmysqld --columnstore-ordered-onlycommand-line option addedmysqld --columnstore-replication-slavecommand-line option addedmysqld --columnstore-select-handlercommand-line option addedmysqld --columnstore-string-scan-thresholdcommand-line option addedmysqld --columnstore-stringtable-thresholdcommand-line option addedmysqld --columnstore-tablescommand-line option addedmysqld --columnstore-um-mem-limitcommand-line option addedmysqld --columnstore-use-decimal-scalecommand-line option addedmysqld --columnstore-use-import-for-batchinsertcommand-line option addedmysqld --columnstore-varbin-always-hexcommand-line option addedmysqld --columnstorecommand-line option added
Platforms
In alignment to the MariaDB Corporation Engineering Policy, MariaDB ColumnStore 1.4.4 is provided for:
Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 7
CentOS 8
CentOS 7
Ubuntu 20.04
Ubuntu 18.04
Ubuntu 16.04
Debian 10
Debian 9
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12
Note: MariaDB Enterprise ColumnStore 1.4 is no longer supported. If you would like to deploy Enterprise ColumnStore, please use MariaDB Enterprise ColumnStore 5 or later. For installation and upgrade instructions, see "Deploy".
This page is: Copyright © 2025 MariaDB. All rights reserved.
Last updated
Was this helpful?

