4.0.8
Release Date: March 25, 2026
Behavior Changes
- Improved
sql_modehandling: whenDIVISION_BY_ZEROorFAIL_PARSE_DATEmode is set, division by zero and date parse failures instr_to_date/str2datenow return an error instead of being silently ignored. #70004 - When
sql_modeis set toFORBID_INVALID_DATE, invalid dates inINSERT VALUESclauses are now correctly rejected instead of being bypassed. #69803 - Expression partition generated columns are now hidden from
DESCandSHOW CREATE TABLEoutput. #69793 - Client ID is no longer included in audit logs. #69383
Improvements
- Added a configuration item
local_exchange_buffer_mem_limit_per_driverto limit the local exchange buffer size todop * local_exchange_buffer_mem_limit_per_driver. #70393 - Cached file existence check results across versions in
check_missing_filesto reduce redundant storage I/O. #70364 - Allowed disabling split and reverse scan ranges for descending TopN runtime filters when
desc_hint_split_rangeis set to ≤ 0. #70307 - Added
EXPLAINandEXPLAIN ANALYZEsupport forINSERTstatements in the Trino dialect. #70174 - Optimized Iceberg read performance when position deletes are present. #69717
- Optimized materialized view best-selector strategy based on distributed keys to improve materialized view selection accuracy. #69679
Bug Fixes
The following issues have been fixed:
- JDBC MySQL pushdown failing for unsupported cast operations. #70415
- Type mismatch issues in materialized view refresh. Added
mv_refresh_force_partition_typeconfiguration to force partition type in materialized view refresh. #70381 dataVersionnot set correctly when restoring from backup. #70373- Duplicated partition names in materialized view refresh tasks. #70354
- Incorrect SLF4J parameterized logging using string concatenation instead of placeholder arguments. #70330
- Comment not set when creating Hive tables. #70318
FileSystemExpirationCheckerblocking on slow HDFS close operations. #70311- Distribute column validation not applied across different partitions in
OlapTableSink. #70310 - Constant folding producing INF instead of an error when double addition overflows. #70309
- Typo in Iceberg table creation: field
commonwas used instead ofcomment. #70267 - Root user not bypassing all Ranger permission checks in some scenarios. #70254
query_poolmemory tracker going negative during data ingestion. #70228AuditEventProcessorthread exiting due toOutOfMemoryException. #70206SplitTopNRulenot applying partition pruning correctly. #70154- Out-of-bounds access in
cal_new_base_versionduring schema change publish. #70132 - Materialied view rewrite ignoring dropped partitions from the base table. #70130
- Unexpected partition predicate pruning due to type mismatch in boundary comparisons. #70097
str_to_datelosing microsecond precision in BE runtime. #70068- Join spill process crashing in
set_callback_function. #70030 - Broker Load failing GCS authentication after
gcs-connectorupgrade to version 3.0.13. #70012 - DCHECK failure in
DeltaWriter::close()when called from a bthread context. #69960 - Use-after-free race condition in
AsyncDeltaWriterclose/finish lifecycle. #69940 - Race condition causing write transaction edit log entry to be missed. #69899
- Known CVE vulnerabilities. #69863
- Follower FE not waiting for journal replay in
changeCatalogDb. #69834 - Incorrect
LIKEpattern matching with backslash escape sequences. #69775 - Expression analysis failure after renaming a partition column. #69771
- Use-after-free crash in
AsyncDeltaWriter::close. #69770 - Crash in local partition TopN execution. #69752
- Incorrect behavior in
PartitionColumnMinMaxRewriteRulecaused byPartition.hasStorageData. #69751 - Duplicated CSV compression suffix in file sink output filenames. #69749
lake_capture_tablet_and_rowsetsnot gated behind an experimental configuration flag. #69748- Incorrect partition min pruning with shadow partitions. #69641
- Java UDTF/UDAF crashing when method parameters use generic types. #69197
- Per-query metadata not released after query planning, causing FE OOM during concurrent query execution. #68444
- Query-scope warehouse hint leaking
ComputeResourceinConnectContext. #70706 - Lock-free materialized view rewrite incorrectly falling back to live metadata. #70475
- Duplicate closure reference in
_tablet_multi_get_rpc. #70657 - Infinite recursion in
ReplaceColumnRefRewriter. #66974 NOT NULLconstraint incorrectly pushed down toFILES()table function schema. #70621num_short_key_columnsmismatch in partial tablet schema. #70586COLUMN_UPSERT_MODEchecksum error in shared-data clusters. #65320- Column type mismatch for
__iceberg_transform_bucket. #70443 - Starlet configuration items not taking effect. #70482
- DCG data not read correctly when switching from column mode to row mode in partial update. #61529