We're excited to bring you the latest updates, new features, and improvements for October 2024 in Databend! We hope these enhancements are helpful, and we look forward to your feedback.
Databend Cloud: Multi-Cluster Warehouses
A multi-cluster warehouse automatically adjusts compute resources by adding or removing clusters based on workload demand. It ensures high concurrency and performance while optimizing cost by scaling up or down as needed.
You can enable Multi-Cluster for a warehouse when you create it and set the maximum number of clusters that the warehouse can scale up to. For more information, see Multi-Cluster Warehouses.
Unsetting FUSE Engine Options
You can now unset Fuse Engine options for a table with the command ALTER TABLE OPTIONS, reverting them to their default values.
ALTER TABLE [ <database_name>. ]<table_name> UNSET OPTIONS (<options>)
ALTER TABLE fuse_table UNSET OPTIONS (block_per_segment, data_retention_period_in_hours);
SHOW CREATE TABLE fuse_table;
-[ RECORD 1 ]-----------------------------------
Table: fuse_table
Create Table: CREATE TABLE fuse_table (
a INT NULL
) ENGINE=FUSE COMPRESSION='lz4' STORAGE_FORMAT='native'
New Options for Data Unloading
New copy options have been introduced for the COPY INTO command:
- OVERWRITE: When , existing files with the same name at the target path will be overwritten. Note:
true
requiresOVERWRITE = true
andUSE_RAW_PATH = true
.INCLUDE_QUERY_ID = false
- INCLUDE_QUERY_ID: When , a unique UUID will be included in the exported file names.
true
- USE_RAW_PATH: When , the exact user-provided path (including the full file name) will be used for exporting the data. If set to
true
, the user must provide a directory path.false
Handling Invalid Date & Time Values
Databend automatically converts invalid Date or Timestamp values to their minimum valid equivalents,
1000-01-01
1000-01-01 00:00:00
-- Attempts to add one day to the maximum date, exceeding the valid range.
-- Result: Returns DateMIN (1000-01-01) instead of an error.
SELECT ADD_DAYS(TO_DATE('9999-12-31'), 1);
┌────────────────────────────────────┐
│ add_days(to_date('9999-12-31'), 1) │
├────────────────────────────────────┤