Version 4.8.0¶
Released on 2022-04-28.
Note
If you are upgrading a cluster, you must be running CrateDB 4.0.2 or higher before you upgrade to 4.8.0.
We recommend that you upgrade to the latest 4.3 release before moving to 4.8.0.
A rolling upgrade from 4.7.x to 4.8.0 is supported.
Before upgrading, you should back up your data.
Table of Contents
Breaking Changes¶
Removed support for HDFS snapshot repositories. We suspect nobody uses it anymore. If you require HDFS support please reach out to us, if there is enough interest we may be able to provide a plugin with the functionality.
Changes¶
SQL Statements and Compatibility¶
Added support for UNION DISTINCT or UNION statement to be able to retrieve unique rows from multiple relations without using sub-queries with extra
GROUP BYclauses.Implemented cancelling requests section of PostgreSQL wire protocol.
Added a
WITHclause parameter,validationtoCOPY FROMwhich can enable or disable the newly added type validation feature.Added type validation logic to
COPY FROM. Now raw data will be parsed and validated against the target table schema and casted if possible utilizing type casting.Allow users to be able to specify different S3 compatible storage endpoints to
COPY FROM/TOstatements by embedding the host and port to theURIparameter and also aWITHclause parameterprotocolto choose betweenHTTPorHTTPS.Added the option to import CSV files without field headers using the
COPY FROMstatement.Added the option to import only a subset of columns using
COPY FROMwhen importing CSV files with headers.Added the option to run
COPY FROMandCOPY TOoperations in the background without waiting for them to complete.
New Scalars¶
Added the array_position function which returns the position of the first occurrence of the provided value in an array. A starting position can be optionally provided.
Administration and Operations¶
Added the Logical Replication feature allowing to replicate data across multiple clusters.
Write blocks added due to low disk space are now automatically removed if a node again drops below the high watermark.
Added a
flush_statscolumn to the sys.shards table.Updated to Admin UI 1.21.0, which improves console highlighting by adding various keywords and data types.
Performance¶
Optimized the casting from string to arrays by avoiding an unnecessary string to byte conversion.
Improved the evaluation performance of implicit casts by utilizing the compile step of the function to determine the return type.