docs/en/release_notes/release-4.0.md
:::warning
Downgrade Notes
After upgrading StarRocks to v4.0, DO NOT downgrade it directly to v3.5.0 & v3.5.1, otherwise it will cause metadata incompatibility and FE crash. You must downgrade the cluster to v3.5.2 or later to prevent these issues.
Before downgrading clusters from v4.0.3 to v3.5.2~v3.5.10, execute the following statement:
SET GLOBAL enable_rewrite_simple_agg_to_meta_scan=false;
:::
Release Date: December 25, 2025
ORDER BY clauses for STRUCT data types #66035SHOW CREATE VIEW. #65938ALTER TABLE ADD/DROP PARTITION COLUMN. #65922COUNT/SUM/AVG(DISTINCT) aggregation over framed windows (for example, ORDER BY/PARTITION BY) with optimization options. #65815memchr for single-character delimiters. #63715TableSchemaService in FE for shared-data clusters to allow CNs to fetch specific schemas on demand. #66142filterPartitionsByTTL to properly handle NULL partition values to prevent all partitions from being filtered. #65923FusedMultiDistinctState to clear the associated MemPool upon reset. #66073ICEBERG_CATALOG_SECURITY property check case-insensitive in Iceberg REST Catalog. #66028GET /service_id to retrieve StarOS Service ID in shared-data clusters. #65816metadata.broker.list with bootstrap.servers in Kafka consumer configurations. #65437lake_enable_fullvacuum (Default: false) to allow disabling the Full Vacuum Daemon. #66685The following issues have been fixed:
latest_cached_tablet_metadata could cause versions to be incorrectly skipped during batch Publish. #66558ClusterSnapshot relative checks in CatalogRecycleBin when running in shared-nothing clusters. #66501PartitionChunkWriter initialization failure caused a null pointer dereference during close. #66097SHOW VERBOSE RESOURCE GROUP ALL displays NULL instead of default_mem_pool for resource groups created in earlier versions. #65982RuntimeException during query execution after disabling the flat_json table configuration. #65921min/max statistics to MetaScan after Schema Change. #65911PARTITION BY and ORDER BY are missing. #67093can_use_bf check when merging runtime filters, which could lead to wrong results or crashes. #67062Release Date: December 4, 2025
mem_pool, allowing multiple resource groups to share the same memory pool and enforce a joint memory limit for the pool. This feature is backward compatible. default_mem_pool is used if mem_pool is not specified. #64112SplitTopNAggregateRule logic to avoid performance regression. #65478api/datacache/app_stat. #65341hour, minute, and second for DATE and DATETIME types in the FE. #64953The following issues have been fixed:
mod-related issue. #65795JsonPathRewriteRule uses the wrong table after transparent materialized view rewrite. #65597partition_retention_condition referenced generated columns. #65575information_schema.tables and views across different databases when enable_evaluate_schema_scan_rule is set to true. #65533Release Date: November 17, 2025
/proc profile for debugging. #63954The following issues have been fixed:
enable_iceberg_table_cache to Iceberg Catalogs to optionally disable Iceberg table cache and allow it always to read the latest data. #64082INSERT ... SELECT reads the freshest metadata by refreshing external tables before planning. #64026rid to slow-lock logs. #63945shared_scan due to incompatibility with event-based scheduling. #63543Release date: October 17, 2025
rewrite_data_files.recyclebin_catalogs metadata view to Information Schema to display recoverable deleted metadata. #51007QueryDetailActionV2 and QueryProfileActionV2 now support JSON format, enhancing cross-FE query capabilities. #63235auto_partition_refresh_number to limit the number of partitions to refresh regardless of auto refresh or manual refresh. #62301enable_materialized_view_agg_pushdown_rewrite is set to true, indicating that aggregation pushdown for materialized view query rewrite is enabled by default. #60976information_schema.materialized_views to better align with the corresponding data. #60054split_part function returns NULL when the delimiter is not matched. #56967datacache_mem_size and datacache_disk_size are now effective.storage_page_cache_limit, block_cache_mem_size, block_cache_disk_size are deprecated.remote_file_cache_memory_ratio for Hive, and iceberg_data_file_cache_memory_usage_ratio and iceberg_delete_file_cache_memory_usage_ratio for Iceberg) to limit the memory resources used for Hive and Iceberg metadata cache, and set the default values to 0.1 (10%). Adjust the metadata cache TTL to 24 hours. #63459 #63373 #61966 #62288fe_tablet_schedules view in the Information Schema. #62073 #59813
TABLET_STATUS column to SCHEDULE_REASON, the CLONE_SRC column to SRC_BE_ID, and the CLONE_DEST column to DEST_BE_ID.CREATE_TIME, SCHEDULE_TIME and FINISH_TIME columns have been changed from DOUBLE to DATETIME.is_leader label has been added to some FE metrics. #63004