Limitations
MariaDB Exa limitations: architecture and query-flow constraints, datatype mapping gaps in MaxScale CDC, SQL-dialect gaps in the SQLglot preprocessor, and the CDC primary-key requirement.
While MariaDB Exa (powered by Exasol) provides exceptional performance for analytical workloads, there are functional and operational limitations regarding architecture, datatype mapping, and SQL dialect compatibility. Data is kept in sync automatically, and most queries and schemas work without changes. This page covers the differences to plan for.
At a glance
Data types: Most common types replicate as-is or with a straightforward mapping. A few, such as binary types, are replicated as
NULL. See Datatype Compatibility.Schema: A primary key is recommended on every replicated table. Triggers, stored procedures, and some clauses are not carried over. See Schema and Replication.
SQL: Analytical queries are translated automatically from MariaDB to Exasol syntax. Some functions, subquery shapes, and
NULLand empty-string behaviors differ. See SQL Syntax Differences and Known Errors.
I. Schema and Replication Management
Exasol is kept in sync with MariaDB by MaxScale CDC (binlogrouter), which reads the MariaDB binary log and applies DDL and DML changes to Exasol in the background over the Exasol ODBC driver. This is a raw data stream that bypasses the SQL translation layer, so the behaviors below come from how CDC maps types and applies changes, not from SQL rewriting.
Primary Key
A primary key is strongly recommended for every table captured by CDC. Tables without one are still replicated, but MaxScale CDC synthesizes a key from all columns for its MERGE-based upsert into Exasol — which is slower and can behave incorrectly when rows are not unique.
Schema Feature Differences
MariaDB feature
Behavior in Exa
AUTO_INCREMENT, SERIAL
Becomes a plain DECIMAL column, not an IDENTITY column. The generated values replicate from MariaDB.
COLLATE
Not supported in Exasol, but data replicates. Comparisons on Exasol are case-sensitive.
ON UPDATE CURRENT_TIMESTAMP
Not supported in Exasol, but updated values still replicate.
ON UPDATE CASCADE, ON DELETE CASCADE
Not supported in Exasol, and cascaded changes to child rows are not replicated.
Stored procedures, stored functions
Not replicated to Exasol, but their effects on table data are. Analytical queries can't call them; equivalent logic can be rebuilt as Exasol UDFs.
Triggers
Not replicated to Exasol, but their effects on table data are.
LATIN1 character set
Not supported. Exasol supports only UTF8 and ASCII.
II. Datatype Compatibility Matrix
As of MaxScale 25.10, compatibility is tiered based on the level of automated support provided between the engines.
Compatibility Tier
Data Types
Native Compatible
INT, BIGINT, SMALLINT, DECIMAL, NUMERIC, DOUBLE, CHAR, VARCHAR, DATE, TIMESTAMP
Rewrite Compatible
TEXT, BOOLEAN, TINYINT(1), FLOAT, DATETIME, TIME, JSON, ENUM, SET, BIT
Replicated as NULL
TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOB, BINARY, VARBINARY, UUID, INET6, Spatial types (Geometry, Point, etc.)
III. Semantic Logic and NULL Behavior
Read-only queries are routed by MaxScale SmartRouter to either MariaDB or Exasol, based on learned performance. Queries sent to Exasol pass through the ExasolRouter, where the SQLglot preprocessor translates MariaDB SQL into Exasol's dialect in real time. Translation covers most syntax, but the two engines still behave differently in the cases below.
1. Comparison & Logic Tests
In Exasol, NULL represents an undefined value rather than a special value, which leads to discrepancies in comparison and sorting. The following results are from queries sent through the ExasolRouter as of MaxScale 25.10.
Query
Result MariaDB
Result Exasol
Comment
SELECT NULL = NULL;
NULL
NULL
✅
SELECT 99 = NULL;
NULL
NULL
✅
SELECT IFNULL(1,0);
1
1
✅ Column header becomes COALESCE(1,0)
SELECT IFNULL(NULL,10);
10
10
✅ Column header becomes COALESCE(NULL,10)
SELECT NULLIF(1,1);
NULL
NULL
✅
SELECT NULLIF(1,2);
1
1
✅
SELECT COALESCE(N,N,1);
1
1
✅
SELECT 99 <=> NULL;
0
❌ Error
❌ Exasol returns Feature not supported: distinct predicate
SELECT ISNULL(1);
0
0
✅ Column header becomes 1 IS NULL
SELECT SUM(x) FROM t;
10
10
✅ Column header becomes SUM(T.X)
SELECT AVG(x) FROM t;
2.75
2.75
✅ Column header becomes AVG(T.X)
SELECT COUNT(x) FROM t;
2
2
✅ Column header becomes COUNT(T.X)
ORDER BY x (ASC)
NULLs come first
NULLs come first
✅
ORDER BY x (DESC)
NULLs come last
NULLs come first
❌ Opposite default sorting
2. Empty Strings vs. NULL
Exasol interprets an empty string ('') as a NULL value. To get the same behavior in MariaDB, enable the EMPTY_STRING_IS_NULL SQL mode. Setting sql_mode=ORACLE alone does not change how empty strings are handled.
Query
MariaDB (EMPTY_STRING_IS_NULL)
MariaDB (Standard)
Result Exasol Behavior
SELECT '';
NULL
''
NULL
SELECT '' IS NULL;
1
0
1
CHAR_LENGTH('');
NULL
0
NULL (evaluated as LENGTH(NULL))
Workaround: Use
SET sql_mode = 'EMPTY_STRING_IS_NULL';in MariaDB.
IV. SQL Syntax Differences
Reserved Words
Exasol reserves over 460 keywords. Common words like schema, hour, and year must be quoted with double quotes ("column") — not backticks.
Default Database
The ExasolRouter does not apply the database named when the client connects. Unqualified table names then fail with an object ... not found error. Run USE <database>; after connecting, or qualify table names with the database name.
Session Variables
User variables (SET @x := 5) and SELECT ... INTO @var are not supported on the analytical path. SET statements sent to Exasol are accepted but ignored, with no error, so a later query that references the variable fails with a syntax error.
Use literal values, a subquery, or a CTE instead:
DEFINE is a client-side EXAplus command, not SQL, and does not work through the ExasolRouter.
Subqueries in the SELECT List
Correlated subqueries in the SELECT list, such as (SELECT SUM(s.fare) FROM seats s WHERE s.order_id = o.order_id), generally work on the analytical path. The following cases fail.
Column Names That Match an Earlier Alias
If a subquery uses an unqualified column whose name matches an alias defined earlier in the same SELECT list, the SQL translation rewrites that column as a reference to the alias. Exasol then rejects the query with invalid select-list in subselect.
Qualify columns inside the subquery with a table alias, or rename the outer alias:
SELECT DISTINCT With a Correlated Subquery
SELECT DISTINCT combined with a correlated subquery in the SELECT list fails with Feature not supported: this kind of correlated subselect. Apply DISTINCT to a derived table instead, or use GROUP BY:
LIMIT in a Correlated Subquery
Exasol does not allow LIMIT within correlated subqueries. On the analytical path, a subquery such as ORDER BY ... LIMIT 1 works while it matches at most one row, and fails with single-row subquery returns more than one row as soon as it matches more. Because it depends on the data, the query can pass testing and fail later. Use an aggregate instead:
GROUP_CONCAT Ordering
GROUP_CONCAT is translated to Exasol's LISTAGG. Without an explicit order, the order of the concatenated values can differ from MariaDB's. An ORDER BY placed on the subquery, outside the function, does not set the order of the list either.
V. Functional Compatibility Matrix
The analytical path uses SQLglot to bridge MariaDB and Exasol dialects.
VI. Data Import and Null Handling
NULL Conversions
MariaDB writes NULL as \N in export files. Importing such a file directly into Exasol with IMPORT fails on TIMESTAMP columns, so replace \N with an empty value or NULL first. Loading through MariaDB and CDC needs no conversion, because NULL values replicate correctly.
Empty Strings
Exasol treats an empty string ('') as NULL. The ExasolRouter rewrites the literal '' to NULL, and empty strings in VARCHAR and TEXT columns arrive as NULL through CDC. As a result, CHAR_LENGTH('') returns NULL rather than 0.
Load Data
LOAD DATA [LOCAL] INFILE fails through the ExasolRouter with a syntax error. Load into MariaDB directly, and CDC replicates the rows to Exasol.
Formatting & Output Trade-offs
Implicit Aliasing: MariaDB preserves the original query string (e.g.,
SUM(x)), while Exasol generates internal aliases (e.g.,SUM(T.X)).Decimal Precision: Results through the ExasolRouter often have trailing zeros trimmed (e.g.,
5vs5.0000). Stored values are unchanged.
Case Sensitivity
Identifiers: table, column, and schema names are matched case-insensitively (
SQL_IDENTIFIER_COMPARISON = IGNORE CASE).String data: comparisons are case-sensitive.
WHERE col = 'abc'does not match'ABC', even for columns that used a case-insensitive collation in MariaDB. UseUPPER()orLOWER()on both sides to match MariaDB.
VII. How It Works: Architecture & Query Flow
MariaDB Exa uses a Hybrid Transactional and Analytical Processing (HTAP) architecture to deliver transactional consistency alongside high-performance analytics.
1. The Analytical Path (Read)
MaxScale SmartRouter: Acts as the intelligent entry point for client applications. It identifies read-only queries and routes them to either the MariaDB cluster or the analytical environment based on learned performance metrics.
ExasolRouter (MariaDB Exa Router): When analytical routing is selected, the query is passed to this specialized router. It hosts the SQLglot Preprocessor.
SQLglot Preprocessor: Automatically transpiles MariaDB-specific SQL dialect into Exasol-compatible dialect in real-time.
2. The Replication Path (Write)
MaxScale CDC (binlogrouter): Manages background synchronization of DDL and DML changes from the MariaDB Binary Log directly to Exasol over the Exasol ODBC driver.
Direct Sync: This pathway is a raw data stream and does not utilize the SQLglot preprocessor.
VIII. Known Errors
Errors you may see when running queries through MariaDB Exa, with their causes and workarounds. The same error number can appear for different Exasol errors, so match on the message text.
Error message
Cause
Workaround
invalid select-list in subselect
A column inside a subquery has the same name as an earlier alias in the SELECT list.
Qualify the column. See Column Names That Match an Earlier Alias.
Feature not supported: this kind of correlated subselect
SELECT DISTINCT with a correlated subquery in the SELECT list.
Apply DISTINCT to a derived table, or use GROUP BY. See SELECT DISTINCT With a Correlated Subquery.
single-row subquery returns more than one row
LIMIT in a correlated subquery that matches more than one row.
Use an aggregate such as MIN(). See LIMIT in a Correlated Subquery.
object ... not found
The table name is unqualified and no default database is set.
Run USE <database>; or qualify the table name. See Default Database.
Feature not supported: distinct predicate
The <=> operator.
Rewrite the comparison, for example as (a = b OR (a IS NULL AND b IS NULL)).
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

