4.0.18
Release Date: November 13, 2026
Improvements
- Reduced metadata copying in shared-data Primary Key compaction by caching base-version metadata in the delete vector loader and skipping the
TabletMetadataPBdeep copy on a metacache hit. #71905 #73071 - Upgraded StarMgr and Starlet to v4.0.10. #81507
- Upgraded the FE ZooKeeper dependency to 3.9.6 for CVE-2026-59739, CVE-2026-59969, and CVE-2026-79993. #81292
- Buffered pass-through chunks are now accounted in query and process memory. #80910
- Lake compaction read buffers are now bounded by the per-worker memory budget. #80229
- The number of shards per batched
getShardInfocall is now bounded. #81197 - Level
-1rowset selection in Primary Key compaction is now bounded. #80471
Bug fixes
The following issues have been fixed:
- Pass-through exchange kept appending chunks after the receiver was cancelled, and a use-after-free on
PassThroughChannel. #76603 #77088 - Queries with several reused CTEs failed with
no executable plan for this sqlwhen the force-inline limit was hit, and a force-reused CTE that outputs one column under two names could crash the BE. #77018 #80158 SELECT DISTINCTordering by a column that theDISTINCTdrops is now rejected. #77217- Partition pruning issues: the NULL partition was dropped when pruning with a deduced partition predicate, and
IS NULLon a partition key was looked up at the type minimum instead of below it. #77596 #79257 - Planner failures on a slot with no parent tuple, on order-by hints when the TopN filter probes a column-less slot, on unregistered dict operators in the scalar shuttle, and on an equality filter over a
VARBINARYcolumn. #78050 #78527 #79310 #81310 - Global dictionary issues: the dictionary was not invalidated after fast schema evolution, derived dictionaries were folded incorrectly, relaxed dictionaries were merged in signed byte order, and global dictionary expressions were lost when skew join v2 replaced the shuffle exchanges. #78599 #78633 #78659 #78672
- The BE aborted on an out-of-range vector-search query vector, on
DISTINCTaggregation over aPERCENTILEvalue, on JSON numbers aboveINT64_MAX, and on anarray_generaterange too large to hold. These are now rejected or handled without aborting. #78658 #78795 #78969 #80205 - Driver partitioning was not aligned across
EXCEPT/INTERSECTand hash join inputs, bucket shuffle join inputs the sender had already aligned were re-partitioned, and bucket properties were not carried with the partition type of a pipeline source. #78920 #79769 #80099 - Compaction crashed with SIGFPE when a vector-index rowset reported a negative
data_disk_size. #78959 - ASOF join temporal conditions that do not compare the two sides are now rejected. #79049
- The
generate_seriesarguments of the skew-join salt table were in the wrong order. #79268 - Spill issues: a failed spill append or partition split was lost, a queued spill data task ran when the spill channel was closed, a spiller's flush-all callback could run twice, and the spillable aggregate source did not guard against a released spiller. #79457 #80252 #81134 #81199
- Struct fields of aggregates were rejected in
GROUP BYchecks. #79649 - A Java UDAF merge that could not wrap its states returned NULL instead of failing. #80098
- Flat JSON issues: compaction did not keep scalar flat JSON sub-columns when it derived its read layout, so every compaction merged flat JSON back into whole JSON, and the path derivation trie was unbounded, which made loading JSON whose key names are data slow and memory-hungry. #80295 #80316
- An assertion on
append_selective_tocompared a selection with the wrong column size. #80324 tokenize()returned one row for a constant argument instead of one row per input row. #80337- Credentials in task run definitions archived to
task_run_historyare now masked. #80447 MINandMAXof a single-column LIST partition column were read off partition definitions and could return a value that no row holds. The previous results were wrong, so results change after the upgrade. #80558- A query failed or crashed the BE when the scan predicate builder folded away the only conjunct on a scanned column, for example
WHERE b > 'X' OR c NOT IN ('Y', NULL). #80572 - The Iceberg REST catalog user agent is now built without
NodeMgr, which fixes an NPE on the checkpoint thread. #80660 map_aggwith a decimal key aborted the BE. #80673- A cast of a constant JSON or VARIANT value to MAP returned a one-row column, so aggregates such as
count()over it returned wrong values and filters on it could abort the BE. The previous results were wrong, so results change after the upgrade. #80679 - With JSON subfield pruning on (the default), functions over
j->'$'on a flat JSON column returned NULL for every row. The previous results were wrong, so results change after the upgrade. #80772 - The brpc future timeout contract was broken, which cancelled every EXPORT shortly after it started. #80783
- A memory leak when an agg-state combinator batch-destroyed, and a data race on a min/max runtime filter's bounds. #81054 #81138
- Iceberg issues: equality deletes were not scoped to their partition, several read-correctness issues (unknown transforms, ORC field ids, promoted bounds, unknown type, default values), follow-up read issues (unknown transforms in
SHOW CREATE TABLE,TIME/TIMESTAMPTZdefaults, missing struct subfields, filters on default columns), reads and inserts on tables with partition evolution, and a column without a write-default was not written as NULL. #81139 #81257 #81311 #81401 #81362 - Materialized view (MV) refresh issues: MV partitions affected by a dropped base partition were not refreshed when they fell into a later refresh batch or outside a partial refresh range, and after the MV's version map was reset (for example, by an inactivation, a recreated base table, or
REFRESH ON_CHANGE), MV partitions over emptied base partitions were not refreshed. Such MVs could keep stale rows, which the next refresh corrects. #81187 #81192 - Shared-data Primary Key recover issues: other lookups in the same publish still read the delete vectors that recover discarded, a multi-statement transaction's batch apply was not recovered on a Primary Key inconsistency, and del files inherited by compaction were replayed after recover. These could leave two live rows for one key. #81204 #81206 #81250
bool_ordid not handle NULLs in its intermediate column when merging, for example when aggregate spill is forced. #81237- The time zone direction of Trino
TIMESTAMP WITH TIME ZONEliterals was swapped. The previous results were wrong, so results change after the upgrade. #81256 - The
Can not active materialized viewmessage was lost when activation failed. #81258 CASTfrom a double or float toDECIMALreturned different last digits on aarch64 than on x86. Results on aarch64 change after the upgrade. #81261convert_tzreturned an invalid value when the result left theDATETIMErange. It now returns NULL, so results change after the upgrade. #81264- Concurrent queries failed to re-plan when a shared-data schema change swapped indexes, because
lastSchemaUpdateTimewas bumped too late. #81363 SELECTcould not be granted on views and materialized views in the Ranger service definition. #81400UnionToValuesRuleignored the order of values outputs when merging a union. #81420