columnstore_decimal_overflow_check
This page is part of MariaDB's Documentation.
The parent of this page is: System Variables for MariaDB Enterprise Server
Topics on this page:
Overview
USAGE
Enterprise ColumnStore can be configured to check for decimal overflows by setting the columnstore_
SET SESSION columnstore_decimal_overflow_check=ON;
SELECT (big_decimal1 * big_decimal2) AS product
FROM columnstore_tab;
DETAILS
When Enterprise ColumnStore performs mathematical operations with very big values using the DECIMAL, NUMERIC, and FIXED data types, the operation can sometimes overflow ColumnStore's maximum precision or scale. The maximum precision and scale depends on the version of Enterprise ColumnStore:
In Enterprise ColumnStore 6, the maximum precision (
M
) is 38, and the maximum scale (D
) is 18.In Enterprise ColumnStore 5, the maximum precision (
M
) is 18, and the maximum scale (D
) is 18.
When decimal overflow checks are enabled, math operations are slower.
When the decimal overflow check fails, MariaDB Enterprise ColumnStore raises an error with the ER_
PARAMETERS
Command-line | --columnstore_decimal_overflow_check |
Configuration file | Supported |
Dynamic | Yes |
Scope | Global, Session |
Data Type | BOOLEAN (OFF, ON) |
Product Default Value | OFF |