<Release - 4.0.18> New release published by <starr...
# announcements
g
Release - 4.0.18 New release published by starrocks-bot[bot] 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
TabletMetadataPB
deep 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
getShardInfo
call is now bounded. #81197 • Level
-1
rowset 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 sql
when 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 DISTINCT
ordering by a column that the
DISTINCT
drops is now rejected. #77217 • Partition pruning issues: the NULL partition was dropped when pruning with a deduced partition predicate, and
IS NULL
on 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
VARBINARY
column. #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
DISTINCT
aggregation over a
PERCENTILE
value, on JSON numbers above
INT64_MAX
, and on an
array_generate
range too large to hold. These are now rejected or handled without aborting. #78658 #78795 #78969 #80205 • Driver partitioning was not aligned across `EXCEPT`/`INTERSECT` and 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_series
arguments 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 BY
checks. #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_to
compared 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_history
are now masked. #80447 •
MIN
and
MAX
of 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_agg
with 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. <https://github.com/StarRocks… StarRocks/starrocks