Version 3.3.0¶
Released on 2019/03/27.
Note
If you are upgrading a cluster, you must be running CrateDB 2.0.4 or higher before you upgrade to 3.3.0.
We recommend that you upgrade to the latest 3.2 release before moving to 3.3.0.
You cannot perform a rolling upgrade to this version. Any upgrade to this version will require a full restart upgrade.
When restarting, CrateDB will migrate indexes to a newer format. Depending on the amount of data, this may delay node start-up time.
Please consult the Upgrade Notes before upgrading.
Warning
Tables that were created prior to upgrading to CrateDB 2.x will not function with 3.3 and must be recreated before moving to 3.3.x.
You can recreate tables using COPY TO and COPY FROM while running a
2.x release into a new table, or by inserting the data into a new table.
Before upgrading, you should back up your data.
Table of contents
Upgrade Notes¶
Deprecated Settings and Features¶
The query frequency and average duration QueryStats MBean metrics has now been deprecated, in favour of the new total count and sum of durations metrics.
The cluster.graceful_stop.reallocate setting has been marked as deprecated.
This setting was already being ignored, and setting the value to false had
no effect.
The node decommission using the USR2 signals has
now been deprecated in favour of the ALTER CLUSTER DECOMMISSION statement.
The CREATE INGEST and DROP INGEST rules have been marked as
deprecated. Given that the only implementation (MQTT) was deprecated and will
be removed, the framework itself will also be removed.
Changelog¶
Changes¶
New Features¶
Exposed the sum of durations, total, and failed count metrics under the QueryStats MBean for
QUERY,INSERT,UPDATE,DELETE,MANAGEMENT,DDL, andCOPYstatement types.Exposed the sum of statement durations, total, and failed count classified by statement type under the
sum_of_durations,total_countandfailed_countcolumns, respectively, in the Jobs metrics table.
SQL Improvements¶
Added
current_schemas(boolean)scalar function which will return the names of schemas in thesearch_path.Added support for the
first_value,last_value, andnth_valuewindow functions as enterprise features.Added the
DROP ANALYZERstatement to support removal of custom analyzer definitions from the cluster.Output the custom analyzer, tokenizer, token_filter, and char_filter definition inside the
information_schema.routines.routine_definitioncolumn.Added support for the
row_number()window function.Added support for using any expression in the operand of a
CASEclause.Fix quoting of identifiers that contain leading digits or spaces when printing relation or column names.
PostgreSQL Compatibility¶
Added
pg_typecolumns:typlen,typarray,typnotnull, andtypnamespacefor improved PostgreSQL compatibility.Added a
pg_descriptiontable to thepg_catalogschema for improved PostgreSQL compatibility.Fixed function resolution for PostgreSQL functions
pg_backend_pid,pg_get_expr, andcurrent_databasewhen the schema prefixpg_catalogis included.
Database Administration¶
Added a node check for the JVM version number.
Added
ALTER CLUSTER DECOMMISSION <nodeId | nodeName>statement that triggers the existing node decommission functionality.Changed the trial license introduced in 3.2 to no longer have an expiration date, but instead be limited to three nodes.
The Usage Data Collector now includes information about the available number of processors.
Deprecations¶
The query frequency and average duration QueryStats MBean metrics has been deprecated in favour of the new total count and sum of durations metrics.
Marked the
cluster.graceful_stop.reallocatesetting as deprecated. This setting was already being ignored, setting the value tofalsehas no effect.The node decommission using the
USR2signal has been deprecated in favour of the ALTER CLUSTER DECOMMISSION statement.Marked
CREATE INGESTandDROP INGESTas deprecated. Given that the only implementation (MQTT) was deprecated and will be removed, the framework itself will also be removed.
Other¶
Buffer the file output of
COPY TOoperations to improve performance by not writing to disk on every row.