StarRocks version 4.1
Container Image Issue (v4.1.0)
Due to an unstable load order issue in the v4.1.0 container image, BE processes may fail to start reliably in container environments. Container environment users should NOT upgrade to v4.1.0. Please wait for v4.1.1, which includes the fix (#71825).
Downgrade Notes
-
After upgrading StarRocks to v4.1, DO NOT downgrade to any v4.0 version below v4.0.6.
Due to internal changes in data layout introduced in v4.1 (related to tablet splitting and distribution mechanisms), clusters upgraded to v4.1 may generate metadata and storage structures that are not fully compatible with earlier versions. As a result, downgrade from v4.1 is only supported to v4.0.6 or later. Downgrading to versions prior to v4.0.6 is not supported. This limitation is due to backward compatibility constraints in how earlier versions interpret tablet layout and distribution metadata.
4.1.3
Release Date: July 14, 2026
Behavior Changes
CTASnow preserves explicitly declaredVARCHAR(N)column lengths instead of widening them toVARCHAR(MAX). Existing tables are unaffected; new tables created withCTASwill enforce the declared length on subsequent writes. #73498- Querying
sys.fe_memory_usageorsys.fe_lockswithout theOPERATE ON SYSTEMprivilege now returns a clear access-denied error instead of a misleading node-lookup failure. #73567 FILES()and broker/stream load no longer apply a session timezone shift toINT64Parquet timestamps written withisAdjustedToUTC=false; those timestamps are now treated as wall-clock values and loaded as-is. Data loaded from such files before v4.1.3 may differ from data loaded after upgrading; reload if consistency is required. #73674- Successfully committed multi-table transaction stream load jobs are now correctly shown as
VISIBLEininformation_schema.loadsandSHOW STREAM LOADinstead of remaining stuck atPREPARING. #74386 - Connector incremental scan range scheduling now consistently reuses the deployed fragment's driver layout, preventing scan ranges from being incorrectly assigned to non-existent drivers. #74674
LIKEconstant-folding now matches MySQL 8 backslash-escape semantics, correcting cases where patterns such as'a\\\\b'previously returned opposite results. #74814- Routine Load now supports the
property.kafka_partition_discoveryproperty, which allows partition auto-discovery to continue even whenkafka_partitionsandkafka_offsetsare specified to seed exact starting offsets. Whenproperty.kafka_default_offsetsis not set, the default starting offset for partitions discovered after the job already has consuming progress changes fromOFFSET_ENDtoOFFSET_BEGINNING— and this applies to all auto-discovery jobs, not only those using the new property. #74729 - Non-group-by aggregates are now pushed down through
UNION ALLbranches before merging, reducing network transfer and memory usage for queries that aggregate over a union. #73930 - IVM maintenance queries are now re-derived from the current view definition at each refresh instead of using the frozen query text stored at
CREATEtime; existing MVs automatically benefit from rewriter bug fixes without needing to be recreated. #74881 - Sample-based tablet pre-split now spreads pre-split shards across all compute nodes (
SPREADplacement) instead of packing them onto the source tablet's worker (PACKplacement), improving load parallelism. #75514 ALTER TABLE ... MODIFY COLUMNthat changes only the column comment now takes the lightweight metadata-only path instead of spawning a full schema-change job, and this now works on Primary Key columns as well. #75325FLOORandCEILare now treated as non-reserved keywords and can be used as column names without quoting. #75241SHOW FUNCTIONSoutput now always includes theisolationproperty (sharedorisolated) in the Properties column for UDFs and UDAFs. #75255- The default value of
lake_vacuum_min_batch_delete_sizeis raised from 100 to 200, improving vacuum throughput on object storage by batching more stale-file deletions perDeleteObjectsrequest. #74304 - Iceberg REST catalog tables with vended credentials are now cached and their credentials are refreshed in the background, eliminating per-
getTable()GetDataAccesscalls that caused AWS Lake Formation rate limiting. #75431 - IVM
bitmap_union,hll_union, andpercentile_unionaggregate states are now stored once in the materialized view instead of twice (visible column + hidden__AGG_STATE_column), halving storage for those sketch types. #75760 - Incremental materialized views now support
bitmap_agg,hll_union,percentile_union, andbitmap_unionaggregate functions, enabling exact distinct-count and sketch-based aggregations to be maintained incrementally. #75587 #75610 - Sample-based tablet pre-split tablet count is now rounded up to the nearest multiple of the active compute-node count for even distribution, and bounded below by a minimum tablet size to avoid excessive fragmentation on small loads. #75360 #75584
Improvements
- The
ngram_searchfunction now accepts a non-constant needle argument. #74675 - Added an HTTP authentication framework controlled by the
enable_http_authFE configuration, gating authentication and RBAC enforcement on all external HTTP endpoints. #73822 - Added refresh and placement observability columns (
refresh_warehouse,refresh_resource_group,refresh_mode,refresh_type,last_refresh_details) toinformation_schema.materialized_views. #74342 - Added opt-in lazy refresh of the external statistics cache on journal replay, controlled by a new FE config, to prevent a slow or stuck external metastore from stalling FE journal replay or startup. #74371
VARCHARlength increase is now allowed on range-distribution (shared-data) sort-key columns via fast schema evolution without a data rewrite. #74698- Added a stack-trace dump when a shared-data transaction log write exceeds a configurable threshold, making slow
put_txn_log/put_combined_txn_logcalls easier to diagnose. #74704 - Tablet pre-split meta-tier footer readers now support
DATE,DATETIME,DECIMAL,VARCHAR, and ORCTIMESTAMPsort keys, reducing the number of loads that must fall back to data-tier sampling. #74710 #74739 #74792 #74902 #74955 #75186 #75209 #75427 #75697 - Sample-based tablet pre-split now applies to
INSERT INTO ... SELECT ... FROM <OLAP table>loads, and also to column-listINSERTstatements that include all sort-key columns. #74828 #75345 - Added Adler-32 checksum protection for shared-data tablet metadata and transaction log files, enabling silent corruption to be detected on read. #74924
- Added the
txn_max_committed_pending_publish_msFE metric per database, reporting the age of the oldest committed-but-not-yet-published transaction to help detect stalled version publishing. #75025 - Tablet split/merge is now triggered in real time from the publish-version response, reducing the lag between a load completing and automatic split/merge being initiated. #75010
- Optimized condition-update compare phase for lake primary-key tables by routing no-SST condition-merge tasks to the
pk_index_executionthread pool. #74572 - Scoped lake schema-change and rollup job locks to the table level instead of the whole database, reducing lock contention on concurrent operations for other tables in the same database. #75087
- Narrowed several database-level write locks to table-scoped intensive write locks in shared-nothing mode, reducing lock contention during BE report callbacks and cooldown operations. #74521 #74523
- Avro Routine Load now supports native
MAPandSTRUCTtarget columns. #74901 - Range-colocate tablet stability gating now waits for StarOS placement convergence before marking a group stable, ensuring colocate joins achieve host-local execution. #75290 #75656 #75883
- Improved CBO statistics for external tables: the optimizer now estimates row counts from Iceberg manifests without full file enumeration, corrects Hive/Hudi row-count underestimation for Parquet/ORC compression, adds async row-count statistics for JDBC connectors, and provides NDV estimation fallback for Iceberg and external connectors when Puffin stats are unavailable. #75280 #75082 #75083 #75092 #75097 #75382 #75474
- Iceberg manifest column statistics are now cached selectively for clustered columns only, reducing FE heap consumption for wide tables with many data files. #75395
- External table statistics collection now supports persistent predicate-column tracking across FE restarts and HA failovers, enabling auto-ANALYZE to target the correct columns. #75653
- Added structured
[ExternalStats]log lines covering the full lifecycle of external-table statistics collection from scheduling through execution. #75335 #75529 SHOW ANALYZE STATUSnow includes partition, column, and snapshot metadata in the Properties column for external table statistics jobs. #75630- The statistics source (
TABLE_METADATA,ANALYZE, orNONE) for each external table is now exposed in the query runtime profile. #75253 - Added support for partition filter requirement and partition count limit for Iceberg and Delta Lake external tables (previously only available for Hive, Hudi, and Paimon). #75790
- Supports sub-1% sampling ratios in
TABLE SAMPLEand histogramANALYZE, fixing failures on large tables where the computed ratio would truncate to zero. #74551 - Added the
jemalloc_confBE configuration item, making jemalloc runtime options visible viainformation_schema.be_configs. #75344 - Added the
compaction_chunk_reset_memory_tracker_threshold_percentBE configuration to reduce memory usage during Primary Key compaction in shared-nothing mode by releasing retained chunk capacity. #75091 - Upgraded staros to v4.1.1, including persistent
datacache.enableacross restarts, per-worker-group shard warmup timeout override, and improved S3 retry jitter. #75204 - Optimized SQL credential redaction on the audit hot path by skipping the regex scan when no credential marker is present in the SQL string. #74812
- Expression-driven on-demand lazy column loading for the Parquet scanner reduces unnecessary I/O on multi-branch
ORqueries. #74886 ds_hll_count_distinct/DataSketchesHllnow produces stable cardinality estimates by using the composite estimator instead of the order-dependent HIP estimator. #75053
Security
- [CVE-2026-45416] [CVE-2026-44249] [CVE-2026-45673] Upgraded Netty to 4.1.135.Final to fix SNI handler heap exhaustion (DoS), IPv6 subnet filter bypass, and DNS cache poisoning. #74668
- [CVE-2026-54512] [CVE-2026-54513] Upgraded
jackson-databindto 2.21.4 to fix two deserialization vulnerabilities. #75373 - [GHSA-2r2c-cx56-8933] [GHSA-47qp-hqvx-6r3f] Excluded
org.jline:jline-remote-telnetfrom Hadoop transitive dependencies to remediate unauthenticated Telnet-server DoS vulnerabilities. #75066 - [CVE-2026-39822] Updated pprof prebuilt to fix a vulnerability in the pprof binary. #76248 #74669
- Fixed SQL injection in
information_schema.task_runswhere a single quote in a predicate value could escape the literal boundary. #75520 tencent.cos.access_key,tencent.cos.secret_key, andiceberg.catalog.jdbc.passwordare now masked inSHOW CREATE CATALOGoutput. #74696- Fixed an out-of-bounds read in
url_decodewhen the input ends with a truncated percent-escape sequence. #75139 - Fixed
HyperLogLog::deserializeaccepting out-of-rangeSPARSEregister indices, which could corrupt heap memory and crash the BE on malformed input. #75521 - Fixed
bar()rejecting negative width values, which previously allowed unbounded string growth and BE memory exhaustion. #75143
Bug Fixes
The following issues have been fixed:
add_filespopulated Iceberg file bounds with Parquet physical encoding bytes instead of logical typed values, causing incorrect file-level min/max pruning (for example, onDECIMALcolumns). #69207ApplyTuningGuideRulethrewUnsupportedOperationExceptionwhen traversing plan nodes whose input lists were built as immutableList.of(...). #70785INSERT OVERWRITEtwo-phase re-plan could produce stale lambda-argument column reference IDs from the first planning session, causingexpr_type does not match slot_typeerrors. #73273- Partial updates on tables with GIN (inverted) indexes caused queries to hang indefinitely or fail when the GIN-indexed column was omitted from the update. #73773
- Lake PCU (partial column update) crashed or silently corrupted data when a schema drift occurred between the rowset schema and the tablet schema. #74005
- A combined
ALTER TABLEon an external Iceberg table with multiple schema clauses incorrectly re-executed all previously queued actions on every clause dispatch. #74036 PartitionedSpillerWritercrashed withSIGSEGVwhen thenum_rowssnapshot exceeded the actual chunk row count during partition-flush and resource-group-cancellation interleaving. #74081- BE process could exit unexpectedly during startup (typically right after deployment) because SIGPIPE was not ignored in BE signal initialization. #74424
- Parquet temporary dict-code columns leaked to upper layers when a struct VARCHAR subfield fill was skipped due to row-range filtering, causing type mismatches. #74452
SELECT ... INTO OUTFILErecordedReturnRows=0in the audit log instead of the actual exported row count. #74467TabletChecker.doCheck()threwIllegalMonitorStateExceptioninblockingAddTabletCtxToSchedulerdue to a lock type mismatch, causing entire checker rounds to abort silently. #74596information_schema.COLUMNSalways returnedNULLforDATETIME_PRECISION, breaking MySQL-protocol clients that derive column size from that field. #74623- MV refresh failed with
Duplicate keywhen the query joined two tables with the same unqualified name across different databases or catalogs. #74730 - Spillable hash join probe crashed under certain conditions. #74978 #75140
- Iceberg
truncateandbuckettransform functions crashed the BE withSIGFPEwhen the width or bucket count argument was zero. #74998 mod()andpmod()crashed the BE withSIGFPEwhen the dividend wasTYPE_MINand the divisor was-1. #74980histogram()crashed the BE withSIGFPEwhenbucket_numwas zero or negative. #75041encode_fingerprint_sha256crashed withSIGSEGVwhen all input rows wereNULL. #75042LIKEpatterns containing the single-char wildcard_returned incorrect results when evaluated via a GIN inverted index. #75551- AND-only
MATCHqueries against a GIN inverted index returned a spurious error when the target segment was empty. #75161 - CLucene
match_allqueries returned incorrect results; resolved by upgrading the CLucene dependency. #75180 - Vector index rewrite registered a synthetic distance column directly on the shared table schema, causing
Multiple entries with same keyerrors for unrelated concurrent queries on the same table. #74785 - Join reorder pruning could prune columns still referenced by scan predicates, causing statistics estimation to throw
missing statistic of col. #74791 avg(DISTINCT x)was incorrectly rewritten via a sum/count materialized view, silently dropping theDISTINCTand returning wrong results when duplicates existed. #75071ALTER TABLE ... MODIFY COLUMN ... AFTER <nonexistent_col>threw an internalNullPointerExceptioninstead of a clean semantic error. #75073SHOW CREATE ROUTINE LOADemitted a spurious leading comma before the first load-description clause for jobs without aCOLUMNS TERMINATED BYclause. #75522SECURITY INVOKERviews with CTEs could fail privilege checks with an NPE when the CTE name was mistaken for a real table reference. #74813ReduceCastRuleaborted query planning with aSemanticExceptionwhen a date/datetime boundary literal shifting would overflow the representable range (for example,<= '9999-12-31'). #75036SplitJoinORToUnionRuleemitted duplicate rows when a join condition used null-safe-equal (<=>) disjuncts. #75038Tracersshared across parallel metadata-preparation threads for multi-table external queries causedIllegalStateExceptionunderenable_profile=true. #74746- Partition consumer errors in
ChunksPartitionerwere silently discarded, allowing a partitioned TopN to return partial or wrong results without surfacing an error. #74693 - BE vacuum tasks continued running as zombies after the FE caller's timeout elapsed, exhausting the
RELEASE_SNAPSHOTthread pool and collapsing vacuum throughput. #74694 - An autovacuum race could momentarily compute a
minActiveTxnIdone greater than an in-flight transaction, causing the BE to delete still-needed combined transaction logs and permanently wedging publish. #74906 - Queries were incorrectly marked as canceled after finishing successfully due to a race between FE EOS-cancel and BE stage-2 deploy. #75009
- BE crashed with
SIGSEGVinAggTopNRuntimeFilterUpdaterImplwhen the aggregate TopN runtime filter build key was aConstColumn. #74809 #74941 array_map/transformsilently droppedNULLrows and returned wrong row counts when all non-null arrays were empty. #75141LARGEINT/DECIMAL128literals above 2^64 were silently truncated to 64 bits in JIT-compiled expressions. #75137- UTF-8 string functions (
split,split_part,str_to_map) read beyond the end of the string when the last character had a truncated or invalid multi-byte lead byte with an empty delimiter. #75068 parse_json()silently returnedNULLfor malformed JSON even inALLOW_THROW_EXCEPTIONSQL mode instead of failing the query. #74976- Strict-mode numeric narrowing casts incorrectly raised overflow errors on
NULLrows whose slot data was undefined. #74903 - Pre-1970 Parquet
INT64timestamps with a non-zero sub-second part were decoded to garbage values due to negative truncating-division remainder. #75207 - Pre-1970 ORC
TIMESTAMPvalues had their sub-second component dropped on load. #75432 - ORC stripe min/max timestamp statistics were decoded incorrectly for pre-1970 and sub-second bounds, causing data files to be incorrectly pruned. #75543
- Nested
INT96Parquet timestamps insideARRAY,MAP, orSTRUCTcolumns lost one session-timezone offset on load. #74868 - Parquet
UINT_32values were sign-extended instead of zero-extended when loaded into aBIGINTcolumn, silently storing negative values for high-bit unsigned integers. #75002 HiveDataSourcedestructor caused a heap-use-after-free by destroying_pool(and itsExprnodes) before_scanner_ctx(which holds predicates referencing those nodes). #74818- Reading gzip-compressed JSON Hive external tables with OpenX SerDe failed with
UTF8_ERRORwhen a multi-byte UTF-8 character straddled an 8 MB decompression buffer boundary. #74827 - ADLS2
ListPathscrashed withSIGSEGVon non-HNS accounts due to missing JSON fields that the client accessed unconditionally. #75166 unnestcrashed or returned wrong results when multipleUNNESToperators shared the same input array column and consumed different subfields. #75012 #75445 #76002query_mem_limitwas not enforced duringunnestexecution, allowingunnestover large arrays to OOM-kill the BE instead of failing the query. #75179TopNwithRANKboundary dropped one row when the rank limit fell exactly on a chunk boundary. #75045- Column pruning after
PushDownDistinctAggregateRulecould generate an empty analytic (window) operator, causing planning or execution errors. #74810 EliminateSortColumnWithEqualityPredicateRuleset the row limit only on the scan operator without setting a global limit, causingCOUNT(*)over a limited sub-query to return more rows than expected under concurrency. #74983- Lake primary-key persistent index rebuild used wrong segment iterator positions in segment-range mode, causing incorrect key-range filter application. #74887 #75206
DROP PERSISTENT INDEXmodifiedrebuildPindexVersionwithout a table lock;RestoreJobpost-restore mutated MV base-table info under only a DB READ lock;FinalizeCreateTableActionpassed a DB-level lock across iterator creation. #74968dumpImagecould strand the global meta lock indefinitely if acquiring a per-database lock threw mid-loop. #75488- Multi-statement stream load leaked one
TxnStateCallbackFactoryentry per transaction, growing without bound and eventually exhausting FE heap. #75188 information_schema.task_runsrow count for histogram statistics could overflowprimary_key_limit_size(128 bytes) when catalog, database, table, or partition names were long. #75735- BE JVM metrics emitted invalid Prometheus
# TYPElines (label sets inside the metric name), causing Prometheus to abort the entire scrape. #75240 SHOW PARTITIONSandinformation_schema.partitions_metareported all physical partitions' bucket counts as the table-level default instead of each partition's actual bucket count on shared-data tables. #75734SHOW PROC '.../index_schema/<id>'returned the base table schema for all rollup indexes on shared-data (CLOUD_NATIVE) tables. #76069ALTER TABLE ... MODIFY COLUMNno-op clauses were incorrectly routed to the lightweight comment path, causingMODIFY COLUMN COMMENT can not be combined with other alter operationserrors in batchALTER TABLEstatements. #75736isCommentOnlyModificationcould misidentify key/aggregation columns as comment-only changes due to incorrectisKey/aggregationTypenormalization. #75545ALTER VIEWcould commit a cyclic view definition that caused subsequentSELECTto throwStackOverflowError. #75033OrderedPartitionExchangercaused a heap-use-after-free when a downstream consumer mutated the previous chunk whileaccept()still held a pointer to it. #75279- NLJoin crashed when the build-side's slot descriptor was non-nullable but the runtime state was nullable. #75343 #75788
CAST(json/variant AS struct)crashed the BE at fragment prepare when a struct field name was not a parseable JSON path. #75355- Dict-decode for nested dictionary expressions could produce incompatible dictionary translations between producer and consumer fragments, causing
Dict Decode failederrors at runtime. #75246 - Schema change crashed with a null-pointer dereference when
get_rowset_by_versionreturnednullptrand thegtidcomparison was placed before the null check. #74855 - Shared-data cluster snapshots became unrestorable after a tablet split/merge because the snapshot manager did not consider reshard jobs when deciding whether to reap parent tablet metadata. #75638
- File-bundling vacuum incorrectly flagged zero-row bundled segments of sibling tablets as non-shared, causing their bundle file to be deleted while other tablets still referenced it. #75689
- Shared-data table compaction publish dropped rollup/synchronous-MV indexes that became visible after the compaction transaction began, leaving the bundle file without those indexes. #76105
- Shared-data persistent-index compaction incorrectly deleted pass-through-reused SSTable files when a compaction was dropped during tablet reshard. #75726
NOT NULL-to-nullable flat-JSON column schema evolution caused aCHECKcrash in the compaction read path. #75680count_combineover a nullable column crashed the BE withSIGSEGVin the streaming pre-aggregation pass-through path. #75298- Java UDFs failed to load on JDK 21+ due to a reflective
DirectByteBufferconstructor lookup that was removed in JDK 21. #75666 CTASinto a Unified catalog (Hive metastore) always failed because the parser did not support theENGINEclause inCREATE TABLE AS SELECT. #75771JoinTuningGuidefeedback-driven join rebuild lostpredicateCommonOperators, causingInputDependenciesCheckervalidation failures on plans with common sub-expression reuse. #75773- Query cache normalization crashed with
Preconditions.checkStateon tables with sub-partitions where empty sub-partitions were pruned before the version list was built. #75789 replayFromJsonsilently skipped session variables stored under a legacy alias, causing query dump replay to fall back to default values. #75813- Iceberg
_row_idvirtual column returned incorrect values for data files with more than one Parquet row group due to double-counting of the row-group start offset. #75758 - Iceberg DELETE/UPDATE planner could not locate the target scan node because it matched by synthetic table ID instead of physical table identity, losing the base snapshot ID and conflict-detection filter. #76013
FragmentContext::set_final_statuscrashed withSIGSEGVwhen acancel_plan_fragmentRPC arrived beforePipelineExecutorSet::start()was called. #75030QueryContextcould be reclaimed whileFragmentExecutorwas still tearing down a fragment, causing heap-use-after-free inResGuard::reset(). #74978StringSearch::_patternwas uninitialized, allowing a default-constructedsearch()to dereference an uninitialized pointer. #75614DATETIMEmicroseconds were rendered using the JVM default locale's digit set, causing non-ASCII digits on locales such as Arabic or Persian that broke boundary value parsing in tablet pre-split. #75001- Partition row counts could be written as zero into
_statistics_.column_statisticsafterINSERT OVERWRITEbefore tablet stats were refreshed, causing the optimizer to collapse partition cardinality estimates. #74801 enable_statistic_collect_on_first_loadtable-level override could not enable first-load statistics collection when the global config disabled it. #74794PushDownNonGroupedAggregateBelowUnionproduced nullable outputs with non-nullable declared types when a union branch had no input rows, causing BECHECKfailures. #76101
4.1.2
Release Date: June 18, 2026
Behavior Changes
- Connecting to a database that the user has no privilege on now returns a proper MySQL error packet instead of closing the connection with ERROR 2013. #70072
SHOW FUNCTIONSnow masks UDF file and object-file paths as***for users who can see a function through function-level privileges but do not hold the create-function scope privilege. #73425- Ranger row filter and column masking policies are now correctly applied when querying Hive views from external catalogs. #73265
ALTER TABLE ... ADD COLUMN ... DEFAULT current_timestampnow correctly preserves thecurrent_timestampgenerator expression.DESCRIBEandinformation_schemanow reflect the expression rather than the backfill-time literal. #73455information_schema.loadsload-time filtering no longer shifts filter bounds on clusters whose session timezone differs from UTC+8. Load times are now exchanged as UTC epoch milliseconds across the FE–BE boundary. #73365- The
connector_max_split_sizesession variable now correctly applies to Paimon scan split calculation instead of always using the default value. #71756 pipeline_enable_large_column_checkeris now enabled by default. #72798- Hive partition statistics are no longer refreshed automatically per key on a timer. Partition stats are now only refreshed during explicit
refreshTable()calls, reducing HMS load on large partitioned tables. #73563 - When an Iceberg or external-catalog base table undergoes schema drift (column type change, column drop, or table drop), the dependent materialized view is now marked inactive at the next refresh instead of silently producing NULL rows or opaque errors. #73770
- The Iceberg connector now partially pushes down the convertible side of
ANDcompound predicates instead of discarding the entire predicate when only one side is convertible, improving partition pruning and data skipping. #70293 - Explicit-transaction
COMMITnow correctly waits up toquery_timeoutseconds (not milliseconds) for the database write lock, preventing spurious lock-timeout failures under brief concurrent write activity. #73549 - IVM refresh now surfaces strict-load filter errors to the caller instead of silently dropping filtered rows. #73938
count_combine(nullable_col)now correctly excludes NULL rows, matchingCOUNT(col)semantics. Incremental MVs backed byCOUNT(<nullable column>)were previously materializing inflated counts. #74029SHOW ALTER TABLE COLUMNnow also displays asynchronous metadata-only alter jobs triggered byALTER TABLE ... SET (...)for properties such asfile_bundlingandenable_persistent_indexon cloud-native (shared-data) tables. #74198- Creating an incremental MV with a
HAVINGclause that references an aggregate function now fails atCREATEtime with a clear error instead of producing an internal plan error on first refresh. #74054 - IVM now supports
MIN/MAX(DECIMAL)aggregate functions in incremental materialized views. #73969 - IVM adaptive refresh now correctly bounds the delta window when the first delta trait already exceeds
mv_max_rows_per_refresh, preventing the entire backlog from being refreshed in one task run. #74464 - GROUP-BY-only incremental MVs (for example,
SELECT k FROM t GROUP BY k) now correctly encode__ROW_ID__as VARCHAR, fixing a crash on the second refresh. #74030
Improvements
- Supports Paimon views, including
CREATE/REPLACE/DROP,SHOW/DESC, and querying Paimon views from external catalogs. Table references inside Paimon views are now resolved against the Paimon catalog instead ofdefault_catalog. #56058 #70217 - Supports an explicit
schemaparameter inFILES()for stable schema control when reading files with schema drift or complex nested types. #72033 get_query_profile()now retrieves query profile information across all FE nodes, not only the connected FE. #71123- Added the
query_id()built-in function, which returns the UUID of the currently executing query. #73621 CREATE/ALTER STORAGE VOLUMEin shared-data mode now validates storage location accessibility (credentials and endpoints) before persisting metadata, failing early on misconfiguration. #70053- Added
WebIdentitytoken provider support for AWS S3 credentials in BE, matching the existing FE support forAWS_S3_USE_WEB_IDENTITY_TOKEN_FILE. #69966 - Added the
ADMIN SKIP COMMITTED TRANSACTIONcommand to unblock stuckCOMMITTEDtransactions on shared-data tables when publish is permanently blocked by missingtxnlog, lost segments, or slow remote I/O. #73553 information_schema.tables_confignow pushes downtable_namepredicates to the FE, greatly reducing overhead for single-table lookups. #73210- Added missing MySQL 8 columns to
information_schematables to improve compatibility with BI tools and JDBC drivers that inspect MySQL 8 schemas during connection introspection. #73370 - Added the
enable_pipeline_event_schedulerBE configuration as a cluster-wide kill switch that overrides the per-session variable when set tofalse. #73264 - Added opt-in wide-string column isolation for statistics collection to reduce per-query memory peaks when collecting statistics on tables with multiple wide string columns. #73258
- Slow-lock logging now supports per-event rate limiting and configurable stack-capture controls to prevent JVM safepoint stalls under high lock contention. #73647
- MV refresh log entries now include the database name in the prefix, making log lines distinguishable in multi-tenant deployments where the same MV name exists in multiple schemas. #73521
enable_profile_logFE configuration is now mutable and can be toggled at runtime viaADMIN SET FRONTEND CONFIGwithout an FE restart. #73894- Added the
enable_print_load_profile_to_logFE configuration (defaultfalse) to write load profiles (stream load, routine load, broker load, and merge-commit load) tofe.profile.log, preserving them even when the in-memory store is evicted by query-profile bursts. #74150 SHOW ROUTINE LOADnow correctly renders column mappings inJobPropertiesinstead of Java object references. #74199CachingIcebergCatalognow uses table-level locking instead of catalog-level locking, reducing refresh serialization lag on catalogs with many concurrently active tables. #73079- Meta scan (background statistics collection) now handles
ADD COLUMN,DROP COLUMN,RENAME COLUMN, andREORDER COLUMNschema changes gracefully instead of failing with a not-found error on post-change segment files. #72901 - Sample-based tablet pre-split now covers multi-partition range-distribution tables and Broker Load, enabling first-load parallelism without an existing data-tier baseline. #73101 #73912 #74048
- MySQL result serialization no longer uses per-row virtual dispatch; a typed column writer is built once per chunk, reducing serialization overhead for wide or large result sets. #66316
DATETIME/DATE-to-string casts now write directly to the output buffer, eliminating per-row heap allocations. #73801- Query statistics merge path replaced a
SpinLockwith a lock-free parallel map, reducing CPU usage on large clusters when workers send intermediate or final statistics. #73796 - Aggregation hash-map and hash-set prefetch is now gated on L2-cache residency, avoiding a 4–9% regression when the bucket array fits in L2. The prefetch distance is now configurable. #73943
- Pipelined per-segment
.lcrmreads for light-compaction publish on shared-data Primary Key tables reduce sequential object-storage round-trips. #73992 - Cold PK-index rebuild scan in shared-data mode is now parallelized across segments, reducing rebuild time when segment reads are remote-I/O bound. #74249
- Internal queries (statistics collection, task runs, MV refreshes) are now visible in
SHOW PROC '/current_queries'and can be killed withKILL QUERY. #74488 - Added lake vacuum batch-size and retry-count bvar metrics for monitoring S3 throttling and tuning
lake_vacuum_min_batch_delete_size. #74112 - Added
CatalogRecycleBinsize gauge metrics to surface recycle-bin growth before it pressures FE heap. #74440 LIST-partitioned tables now open all partitions inOlapTableSinkinstead of applying the latest-N heuristic designed for range-partition tables, reducing incremental-open RPC overhead. #74099- Supports loading
LARGE_LISTandFIXED_SIZE_LISTArrow types into JSON columns viaFILES()or Broker Load. #73714 #73718 - Supports combined transaction log and file bundling for merge-commit (
FRONTEND_STREAMING) loads on shared-data tables, aligning them with other load types. #74460 - Added the mutable FE configuration
slow_publish_partition_log_threshold_ms(default 3000 ms) to control the lake publish phase-breakdown warning threshold without an FE restart. #74043
Security
- [CVE-2026-43869] Bumped
libthriftto 0.23.0 to address improper certificate host validation. #73243 - [CVE-2026-41293] Bumped Apache Tomcat to 9.0.118 to address HTTP/2 request header validation. #73797
- [CVE-2026-45416] [CVE-2026-44249] [CVE-2026-45673] Bumped Netty to 4.1.135.Final to address SNI handler heap exhaustion (DoS), IPv6 subnet filter bypass, and DNS cache poisoning. #74668
- Upgraded pprof prebuilt binaries to Go 1.25.11 to include Go standard library security fixes. #73545 #74669
Bug Fixes
The following issues have been fixed:
parse_url()returned a wrong host when the URL contained:outside ahost:portpattern. #63542- Dictionary-translated expressions incorrectly assumed
f(null) = nullfor expressions where this does not hold (for example,IF(col = '1', NULL, 'ok')). #69376 - Transaction stream load used the default RPC timeout instead of the user-specified timeout, causing premature timeouts. #67584
- Iceberg equality delete files with NULL values in identity columns failed to delete matching rows because
NULL = NULLevaluates to UNKNOWN in the join predicate. #67321 - Error messages for tables with
INJECTEDpartition-projection columns are now more descriptive, showing which columns are causing the issue. #68052 - Queries on insert-only ACID Hive tables returned more rows than expected because insert-overwrite operations were not recognized. #71460
- Disk cache overflowed its configured capacity when Iceberg metadata entries were pinned during concurrent reads. #71651
- Paimon primary key columns were incorrectly marked as non-nullable when querying external catalogs. #71660
- Optimizer timed out when
MultiDistinctByMultiFuncRewriterapplied the same rule repeatedly on queries with multipleARRAY_AGG(DISTINCT <const>)inputs. #70605 - Oracle JDBC date predicates pushed down without the
DATE/TIMESTAMPkeyword caused NLS format errors. #71412 - Partition TopN could lose required output columns from its child operator. #72848
- Unpartitioned MVs could not be created on Iceberg tables with partition evolution. #72285
- Compaction task stats were overwritten and lost for parallel subtasks in
information_schema.be_cloud_native_compactions. #72331 SHOW CREATE MATERIALIZED VIEWfor sync MVs failed with "Table is not found". #73396- Lake publish multi-statement transactions deadlocked during schema change when statement
.logfiles landed at the 4-segment path. #73423 - Sort merge provider errors were not propagated to the fragment context, causing silent query failures. #73337
ConnectorTableIdoverflowed fromintto negative values on long-running follower FEs, causing Iceberg and Hive queries to fail with misleading "Invalid table type" errors. #73344ALTER TABLEwith an empty optimize clause (no distribution or partition spec) was incorrectly parsed and could corrupt the table's default distribution on FE replay. #73352- FE startup failed during ADLS2 shared-data disaster recovery because
AZURE_PATH_KEYwas not recognized as a validStorageVolumeMgrparameter. #73509 - Avro complex-type decoding failed when the optimizer pruned part of a nested type to
UNKNOWN_TYPE, or when nullable array, map, or struct schemas were used. #73474 - COW column mutation optimization caused a crash in
map_applyand similar functions due to twoNullableColumns sharing the sameNullColumnobject. #73480 - Iceberg tables with a custom
LocationProviderfailed onSELECTqueries withClassNotFoundExceptionbecause the provider was eagerly instantiated on FE. #73482 - JDBC
getTable()performed an extragetTableComment()round-trip on every cache miss, extending the intensive planning-phase lock hold and blocking concurrent DDL. #73488 - Nested MV refresh threw
NullPointerExceptionwhen a nested MV returnedFULLorUNKNOWNtimeliness. #73644 - FE worker blocked indefinitely sending query results to a slow MySQL client. The result-send path now enforces a write timeout. #73646
- PK
.delfiles were not transcoded when replicating Primary Key tables from a V1-encoded (shared-nothing) to a V2-encoded (shared-data) cluster, or between two shared-data clusters. #73649 #73958 - Duplicate replicas accumulated in
TabletInvertedIndexduringVERSION_INCOMPLETErecovery because the stale replica reference was not removed before adding the live one. #73661 - Shared-data lake replication file-copy crashed the CN because
REPLICATE_SNAPSHOTtasks and per-file copy sub-tasks shared the same thread pool. #73666 RuntimeProfileParserthrewNumberFormatExceptionwhen unit counters were formatted with a.000decimal suffix by the BE. #73683- Physical rowid encoding for shared segments in shared-data PK tablet split was incorrect, causing wrong
rss_rowidentries. #73686 - Mixed range-colocate × hash-distributed
JOINqueries returnedUnknown errorinstead of valid results. #73702 TimeUtils.longToTimeStringused a fixed UTC+8 formatter; output now respects the sessiontime_zone. #73619- Decimal-typed columns lost scale when all values were
NULLand the column passed through the nullable unary function path, corrupting downstream result types. #73789 - JSON partial-append for nested types caused an ASAN crash. #73715
- Privilege cache for the
publicrole was not invalidated onGRANT/REVOKE, leaving stale privileges in effect until expiration. #73717 FlatJsoncrashed when sub-writers had no appends. #73730- Aggregate MV rewrite was incorrectly applied when the MV itself had a
HAVINGpredicate, potentially returning incomplete results. #73610 - Data race on the spill writer's
auto_flushflag when entering parallel merge mode caused unintended segment flushes on ARM. #73616 - Routine load scheduler held a per-job write lock while making blocking BE RPCs to fetch Kafka or Pulsar partition metadata, causing lock-hold times of up to 33.6 s. #73591
- Colocate tablets on dead BEs were incorrectly reported as
HEALTHYwhentablet_sched_disable_colocate_balancewas enabled. #73550 ADMIN SHOW REPLICA STATUSdesynchronized the MySQL result stream when a MISSING (phantom) replica row was present, causing client hangs or disconnects. #74393- Per-partition coordinator claim was not re-recorded on every sender's
openRPC in shared-data mode, causing some senders to be missed in the coordinator election and leavingcombined_txn_logfiles unwritten. #73962 _statistics_.pipe_file_listinternal table was not re-created after the_statistics_database or table was dropped. #73970- Task runs force-killed by
TaskCleanerwere not archived, causing them to disappear frominformation_schema.task_runswith no trace. #74146 RENAME TABLEandSWAP TABLE/SWAP MATERIALIZED VIEWheld only an intensive table lock instead of a database write lock, allowing concurrent readers to observe a torn intermediate name-to-table mapping. #74100- PK index compaction output sstables were opened without tablet metadata, causing permanent
metadata is null when loading delvecfailures. #74037 - A partial-update
INSERTinside an explicit transaction targeting a table already modified in the same transaction silently corrupted data atCOMMIT. #74344 ALTER TABLEoperations incompatible with range distribution (schema change, sort-key change) are now rejected with actionable errors instead of silently corrupting metadata. #74020- Aggregate functions with type-mismatched children in the optimizer caused incorrect query results. #74159
ALTER ROUTINE LOADwith a reserved-keyword table name wrote an unparseableorigStmt, causing column mappings to be lost after FE restart. #74188- IVM
state_unioncompatibility check did not recurse into nested types (for example,ARRAY<VARCHAR>), causingCREATE MATERIALIZED VIEWto fail forARRAY_AGGIMVs. #73627 - Parquet temporary dictionary-code columns leaked to upper layers when a scan range was fully filtered out, causing downstream type mismatches. #74452
CASE WHENwith mixed float and integerWHENand result types produced invalid JIT IR, causing incorrect results or crashes. #74382- JIT compilation failure caused use-after-free of
LLVMContext, resulting in SIGSEGV. #74396 - Background statistics tasks overwrote the session
WAREHOUSEsetting, affecting subsequent user queries on the same connection context. #74385 CatalogRecycleBinstopped erasing entries when no cluster snapshot had ever completed successfully, causing unbounded FE memory growth under heavyINSERT OVERWRITEworkloads. #74379- Non-PK replica version holes were not detected by the FE; queries were permanently routed to holed replicas with a frozen
max_version. #74408 - Data race on
MaterializedIndexMeta.updateSchemaBackendId(aHashSetmutated under a shared read lock) could cause lost entries or set corruption. #74412 - Vacuum watermark was not reported correctly when retain-boundary metadata had already been vacuumed, stalling the
file_bundlingswitch-version cleanup. #74429 - Lake vacuum retry used deterministic exponential backoff; decorrelated jitter is now added to spread retries across CNs under S3 throttling. #74108
- Memory accounting in
OlapTableSinkwas inflated because RPC requests allocated from the query memory pool were released in the process context. #73807 - Race condition in
TabletSinkSender::_send_chunk_by_nodewhen automatic partition creation triggered_incremental_open_node_channelconcurrently. #73820 - UDAF context created by a backport of upstream changes caused a memory leak via
unique_ptr::release. #74025 - Potential out-of-bounds in partitioned join probe caused by inaccurate memory accounting in
append_selective. #74315 azure_adls2_oauth2_client_endpointconfig field had a typo in its name. #74581StarMgrMetaSyncerincorrectly reaped range-colocate PACK shard groups as orphans, permanently deleting active shards in shared-data mode. #74117- Sort-key arity for colocate tablet split was resolved from the base schema instead of the materialized schema for PRIMARY KEY tables and tables without an explicit
ORDER BY, causing split jobs to complete without reducing tablet size. #74409 - Auto-merge daemon merged pre-split tablets back together when partition data was below the merge threshold, undoing the parallelism benefit of sample-based pre-split. #74583
- db-level UDFs were missing on follower FEs after
RESTORE ... AS <new_db>because the function'sFunctionName.dbstill pointed at the source database. #74313 - Wrong CN group was assigned for immutable-partition tablet locations in shared-data
DISTRIBUTED BY RANDOMCTAS/INSERT when the warehouse had multiple CN groups. #74316 NullPointerExceptioninStatisticsCalcUtilswhen a partition was dropped concurrently during statistics estimation. #73711InformationSchemaDataSourceandFrontendServiceImplmetadata RPC handlers held full database READ locks, blocking DDL on unrelated tables. #73936 #73913- Pipeline operators that flipped their finished state without notifying shared-context observers could stall peer drivers under the event scheduler. #74055 #74056
- Non-root compound predicates in predicate pushdown yielded
NotPushDowninstead of a scan-level EOF, causingOlapScanNodeto emit no rows when an impossible nested AND branch was present under UNION. #74218 BackendLoadStatistic.initperformed an expensive per-replica scan on BEs with a single storage medium; the check is now O(1) for homogeneous-disk BEs. #73555- Thread-name setting race on data-dir load threads caused noisy
failed to set thread namewarnings on every BE startup. #73862 - Task manager wrote an illegal
RUNNING→RUNNINGedit log, causing task runs to appear stuck in the running map indefinitely. #73882 - PK multi-statement batch transactions did not accumulate
num_rows,data_size, andnum_delsacross composite rowsets, causing incorrect row-count statistics on shared-data Primary Key tables. #74059 - Lake load spill cleanup now uses txn-id-based vacuum-driven reclaim, preventing orphaned spill files after BE crash or OOM. #73064
- PostgreSQL JDBC time values starting from year
0000caused incorrect type mapping results. #70842 - Null-check was missing before reading
gtidfrom a rowset during schema change, causing an NPE crash. #74855
4.1.1
Release Date: May 29, 2026
Behavior Changes
- The Hive connector now uses a native C++ Avro scanner instead of the JNI Avro scanner by default. #73237 #73569
- Query rewrite over INCREMENTAL/AUTO materialized views is now disabled, and FORCE refresh and partition refresh are rejected for INCREMENTAL/AUTO materialized views. #72890 #72336 #71355
Improvements
- Java UDF/UDAF/UDTF now support more types: STRUCT arguments and return values for UDAF/UDTF, nested ARRAY/MAP types, DATE/DATETIME, DECIMAL, and varargs. #72911 #72283 #72337 #72208 #68596
- Scalar UDFs now support STRUCT arguments. #72620
- Python UDFs now support nested ARRAY/MAP types. #72210
- UDAFs are now loaded and initialized once and reused across queries, reducing per-query overhead. #72038
- Replaced the JNI Avro scanner with a native C++ scanner for the Hive connector, with direct binary decoding and support for
avro.schema.literalandavro.schema.url. #73237 #73283 #73257 #73569 - Supports the Trino
WITHclause in CTAS statements. #71960 - Completed Iceberg
timestamptzpartition transform support on the sink path. #73397 - Enabled TopN runtime filter pushdown for Iceberg table aggregation. #72332
- Supports Iceberg datetime min/max optimization. #71870
- Allows HDFS HA configuration passthrough in Catalog and BE to support accessing multiple HDFS clusters. #71521
- Added a partition scan number limit for external table queries. #68480
- Fails fast for unsupported Iceberg V3 features. #70242
- Supports
csv.encloseandcsv.escapefor CSV exports via INSERT INTO FILES. #71589 - Added the
enable_push_down_schemaINSERT property for full schema push-down tofiles(). #70978 - Routine Load jobs are now paused on non-retryable errors (for example, primary key size exceeded). #71161
- Supports join reorder for complex expressions from two children. #71615
- Improved CBO statistics estimation, including MCV/null-fraction propagation for
date_trunc,array_map, CASE WHEN, IS NULL, UNION, and constants. #72233 #70372 #70221 #70865 #70989 #71000 - Improved skew join detection: skew is only detected when all join keys are skewed, and a
force_group_by_skew_eliminate_when_skewedswitch was added to force the skew rule. #72753 #71382 - Supports constant folding for
regexp_replacein the FE. #70804 - Optimized MIN/MAX on date partition columns with constant partition values. #69880
- Introduced the
SCHEDULEkeyword as a synonym forASYNCin materialized view refresh. #72329 - Supports tablet creation retry for Lake tables in shared-data mode. #71068
- Supports conditional update for Lake column-mode partial update. #71961
- Parallelized partial-update publish, persistent index initialization, and SSTable opening to improve ingestion throughput. #71652 #71217 #72112 #71145 #72986
- Supports DCG file synchronization during shared-nothing to shared-data replication. #69339
- Supports schema evolution for widening VARCHAR length on both key and non-key columns. #70747
- Added the
snapshot_meta.jsonmarker for cluster snapshot integrity checks. #71209 - Supports LDAP direct bind authentication via a DN pattern. #71559
- Added the
get_query_dump_from_query_idmeta function for easier query troubleshooting. #72875 - Supports auditing queried relations in the audit log. #71596
- Added session variables for MySQL binary result encoding. #71415
- Added metrics for better observability, including
tablet_numfor shared-data clusters,MemtableIOSpeed,staros_shard_count, and Iceberg metadata-table query metrics. #71444 #69842 #73096 #70825 - Added the FE configuration
deploy_serialization_min_thread_pool_size. #72274 - Added the
tablet_reshard_enable_tablet_mergeconfiguration to disable MergeTabletJob creation. #70906 - Eliminated HTTP-server accept thundering-herd via
SO_REUSEPORT. #72956 - Supports SQL UDF creation via
CREATE FUNCTION ... AS <sql_body>. #67558 - Supports loading UDFs from S3. #64541
- Added the
uuid_v7function, which generates time-ordered UUID v7 values. #67694 - Added per-catalog-type query metrics for external catalog observability. #70533
- Supports an explicit skew hint for window functions, automatically optimizing window functions with skewed partition keys by splitting into UNION. #68739
Security
- [CVE] Upgraded Netty to 4.1.133.Final. #72905
- [CVE-2026-42198] [CVE-2026-5598] Bumped pgjdbc to 42.7.11 (client-side DoS via unbounded SCRAM PBKDF2 iteration count) and BouncyCastle to 1.84 (FrodoKEM private-key leakage). #72797
- [CVE-2026-32280] [CVE-2026-32282] Built pprof with go1.25.9 to eliminate Golang CVEs. #71944 #73545
- Upgraded jetty-http to 9.4.58.v20250814. #71762
- Cleaned up Broker dependency CVEs and removed
wildfly-openssl. #72184 #71908 - Redacted credentials in INSERT INTO FILES error messages. #71245
Bug Fixes
The following issues have been fixed:
- CN segfault on startup caused by
hash_utilstatic initialization order. #71825 - CN crash when scanning an empty tablet with physical split enabled. #70281
- BE crash when querying
information_schema.warehouse_queries. #72019 - SIGFPE in Lake compaction when rowset
num_rowsis zero. #71742 - Division-by-zero in ExecutionDAG fragment connection. #67918
- Graceful-exit crash in SinkBuffer. #73202
- Spillable hash join probe crash. #72397
- Stack-buffer-overflow when formatting into a temporary
std::string. #72728 - Crash in
reverse(DecimalV3). #71834 - Use-after-free in
LoadChannel::get_load_replica_statuscaused by temporaryshared_ptrdestruction. #71843 - Use-after-free in
ThreadPool::do_submitwhen thread creation fails. #71276 - Hive partition descriptor use-after-free across fragment teardown. #73176
- An information schema sink use-after-free. #71513
- An FE file descriptor leak by reusing HttpClient instances. #73239
- JNI local-reference leak in
JDBCScanner::_init_jdbc_scanner. #72913 - Memory leak when caching the MV plan context. #72300
- Unexpected memory overuse in local exchange. #72262
- Race on
response->tablet_metasin Lakepublish_version. #73274 - Concurrent
SegmentFlushTaskrace inDeltaWriter::commit(). #73371 RuntimeProfilemin/max race during serialization. #72904- Race condition in
PipelineTimerTaskduring query context destruction. #73082 - Race condition in
_all_global_rf_ready_or_timeout. #70920 - Shared
NullColumnissue inmap_applyandarray_length. #71258 - Batch-publish deadlock caused by a partition version gap. #71483
- Deadlock when warming up the LRU cache for rowset metadata in shared-nothing mode. #71459
Lockerrollback is not exception-safe and unlock order is incorrect. #72789- Lock contention with DDL and StarOS RPCs caused by several DB locks on read-only and metadata paths. #73067 #72475 #72108 #72218 #72178
- Incorrect shuffle distribution due to a missing project node. #71075
- An AGG TopN runtime filter
exprOrdermismatch causing crashes and wrong results. #71479 - Wrong results from dict-merge GROUP BY. #70866
- Query cache conflicts with local shuffle aggregation. #73194
- Inconsistent global dictionary generation in flat JSON. #72953
- Flat JSON merge empty inconsistency. #72973
- A type mismatch in map literals when explicit key/value types are declared. #71316
- COALESCE children is not casted to a common type in the JOIN USING transformer. #72338
- VARCHAR length is not preserved after reduce-cast with global variables. #70269
- VARBINARY is incorrectly encoded inside nested types in MySQL result sets. #71346
- Check-having-clause issue when disabling aggregation spill on small LIMIT. #72705
- Quotes are not stripped before date parsing, and PostgreSQL date/time bug. #48517 #71016
- Data file shared-flag loss that caused vacuum to delete files still referenced by sibling split tablets. #71585
- Tablet merge correctness for the split→compaction→merge sequence. #72350
- Cross-published txn log num_rows/data_size inflation during tablet splits. #71144
- Delvec orphan entries caused by write-before-compaction in the same publish batch. #71001
- "no queryable replica" on follower FE by syncing the StarMgr journal replay. #71263
merge_conditionis not preserved when applying a normal rowset commit. #72542- Iceberg DELETE conflict detection using an incorrect snapshot ID and filter. #73354
- An NPE on invalid Iceberg transform arguments. #71917
- Iceberg min/max optimization being skipped due to extra columns injected by the planner. #71863
- Aggregate-join-pushdown MV rewrite on Iceberg base tables. #71856
- Missing Hive partition directory before INSERT OVERWRITE commit. #71810
- AWS assume-role not being applied for the JNI scanner. #71422
- Avro complex-type decoding for pruned children and nested nullable schemas. #73474
- File/column/row context is missing in Parquet Broker Load errors. #73236
- Lacking support for Arrow dictionary values in the Parquet scanner. #71855
- The Primary Key for Paimon tables is not shown in SHOW CREATE and DESC returns. #70535
- PostgreSQL/Oracle JDBC type compatibility and JDBC URL construction with trailing slashes. #70626 #70992
- Materialized view refresh issue with SQL Server tables in a JDBC catalog. #72962
- Lazy-materialization slot nullability issue for materialized views over outer joins. #72621
- Rejected AUTO and INCREMENTAL materialized view partition refresh. #71355
- The materialized view scheduler is not stopped after a materialized view becomes inactive. #71265
- Lacking support for
SHOW GRANTS FOR CURRENT_USER()for MySQL client compatibility. #71959 - SHOW statements are not allowed inside an explicit transaction. #72954
- Arrow Flight returning the column name
rfor an empty result set. #71534 - Lacking JNI exception-handling checks in Java UDF code. #71734
ai_queryfunction registration issue. #72103- Stream Load profile collection issue when
enable_load_profileis used. #71952 - Profile START_TIME/END_TIME is not displayed with the session timezone. #71429
star_mgr_meta_sync_interval_secis not runtime mutable. #71675information_schema.tablesnot escaping special characters in equality predicates. #71273- Use-after-free in parallel segment/rowset loading on the error path. #71083
- Potential hash table data loss in aggregation spill
set_finishing. #70851 - PK tablet rowset meta loss caused by a GC race during disk re-migration (A→B→A). #70727
- DB read lock leak in
SharedDataStorageVolumeMgr. #70987 - IVM refresh recording incomplete PCT partition metadata. #71092
- NPE when analyzing generated columns in Stream Load/Broker Load if a referenced column is missing. #71116
- Missing partition predicate in short-circuit point lookup. #71124
4.1.0
Release Date: April 13, 2026
Shared-data Architecture
-
New Multi-Tenant Data Management
Shared-data clusters now support range-based data distribution and automatic splitting and merging of tablets. Tablets can be automatically split when they become oversized or hotspots, without requiring schema changes, SQL modifications, or data re-ingestion. This feature can significantly improve usability, directly addressing data skew and hotspot issues in multi-tenant workloads. #65199 #66342 #67056 #67386 #68342 #68569 #66743 #67441 #68497 #68591 #66672 #69155
-
Large-Capacity Tablet Support (Phase 1)
Enables shared-data clusters to host significantly more data per tablet, with a long-term target of 100 GB per tablet. Phase 1 introduces intra-tablet parallelism across the entire ingestion, Primary Key update, and Compaction pipeline, so a single Lake tablet no longer becomes a single-threaded bottleneck as it grows. Improvements include parallel Compaction within a single tablet (with segment-level splitting), parallel MemTable finalization, flush, and merge for Lake loading (including the load-spill path), tablet-internal parallel publish and parallel condition updates for Primary Key tables, and range-split / parallel / size-tiered Compaction for the cloud-native Primary Key index with remote-storage mapper file support. Together, these changes substantially reduce ingestion memory overhead, compaction amplification, and FE metadata pressure for large-tablet workloads. #66424 #66522 #66778 #66586 #67432 #67478 #67554 #66796 #67392 #67878 #65908 #68677 #68123 #69865
-
Fast Schema Evolution V2
Shared-data clusters now support Fast Schema Evolution V2, which enables second-level DDL execution for schema operations, and further extends the support to materialized views. #65726 #66774 #67915
-
[Beta] Inverted Index on shared-data
Enables built-in inverted indexes for shared-data clusters to accelerate text filtering and full-text search workloads. #66541
-
Cache Observability
Query-level cache hit ratio is now exposed in audit logs and the monitoring system for better cache transparency and latency diagnosis. Additional Data Cache metrics include memory and disk quota usage, and page cache statistics. #63964
-
Added segment metadata filter for Lake tables to skip irrelevant segments based on sort key range during scans, reducing I/O for range-predicate queries. #68124
-
Supports fast cancel for Lake DeltaWriter, reducing latency for cancelled ingestion jobs in shared-data clusters. #68877
-
Added support for interval-based scheduling for automated cluster snapshots. #67525
-
Supports pipeline execution for MemTable flush and merge, improving ingestion throughput for cloud-native tables in shared-data clusters. #67878
-
Supports
dry_runmode for repairing cloud-native tables, allowing users to preview repair actions before execution. #68494 -
Added a thread pool for publish transactions in shared-nothing clusters, improving publish throughput. #67797
Data Lake Analytics
-
Iceberg DELETE Support
Supports writing position delete files for Iceberg tables, enabling DELETE operations on Iceberg tables directly from StarRocks. The support covers the full pipeline of Plan, Sink, Commit, and Audit. #67259 #67277 #67421 #67567
-
TRUNCATE for Hive and Iceberg Tables
Supports TRUNCATE TABLE on external Hive and Iceberg tables. #64768 #65016
-
Incremental materialized view on Iceberg
Extends the support for incremental materialized view refresh to Iceberg append-only tables, enabling query acceleration without full table refresh. #65469 #62699
-
VARIANT Type for Semi-Structured Data in Iceberg
Supports the VARIANT data type in Iceberg Catalog for flexible, schema-on-read storage and querying of semi-structured data. Supports read, write, type casting, and Parquet integration. #63639 #66539
-
Iceberg v3 Support
Added support for Iceberg v3 default value feature and row lineage. #69525 #69633
-
Iceberg Table Maintenance Procedures
Added support for
rewrite_manifestsprocedure and extendedexpire_snapshotsandremove_orphan_filesprocedures with additional arguments for finer-grained table maintenance. #68817 #68898 -
Supports reading file path and row position metadata columns from Iceberg tables. #67003
-
Supports reading
_row_idfrom Iceberg v3 tables, and supports global late materialization for Iceberg v3. #62318 #64133 -
Supports creating Iceberg views with custom properties, and displays properties in SHOW CREATE VIEW output. #65938
-
Supports querying Paimon tables with a specific branch, tag, version, or timestamp. #63316
-
Supports complex types (ARRAY, MAP, STRUCT) for Paimon tables. #66784
-
Supports Partition Transforms with parentheses syntax when creating Iceberg tables. #68945
-
Supports Iceberg global shuffle based on Transform Partition for improved data organization. #70009
-
Supports dynamically enabling global shuffle for Iceberg table sink. #67442
-
Introduced a Commit queue for Iceberg table sink to avoid concurrent Commit conflicts. #68084
-
Added host-level sorting for Iceberg table sink to improve data organization and reading performance. #68121
-
Enabled additional optimizations in ETL execution mode by default, improving performance for INSERT INTO SELECT, CREATE TABLE AS SELECT, and similar batch operations without explicit configuration. #66841
-
Added commit audit information for INSERT and DELETE operations on Iceberg tables. #69198
-
Supports enabling or disabling view endpoint operations in Iceberg REST Catalog. #66083
-
Optimized cache lookup efficiency in CachingIcebergCatalog. #66388
-
Supports EXPLAIN on various Iceberg catalog types. #66563
-
Supports partition projection for tables in AWS Glue Catalog tables. #67601
-
Added resource share type support for AWS Glue
GetDatabasesAPI. #69056 -
Supports Azure ABFS/WASB path mapping with endpoint injection (
azblob/adls2). #67847 -
Added a database metadata cache for JDBC catalog to reduce remote RPC overhead and impact of external system failures. #68256
-
Supports column comments for PostgreSQL tables in
information_schema. #70520 -
Improved Oracle and PostgreSQL JDBC type mapping. #70315 #70566
Query Engine
-
Recursive CTE
Supports Recursive Common Table Expressions (CTEs) for hierarchical traversals, graph queries, and iterative SQL computations. #65932
-
Improved Skew Join v2 rewrite with statistics-based skew detection, histogram support, and NULL-skew awareness. #68680 #68886
-
Improved COUNT DISTINCT over windows and added support for fused multi-distinct aggregations. #67453
-
Supports explicit skew hint for window functions, with automatic optimization of window functions with skewed partition keys by splitting into UNION. #67944
-
Supports EXPLAIN and EXPLAIN ANALYZE for INSERT statements in Trino Parser. #70174
-
Supports EXPLAIN for query queue visibility. #69933
Functions and SQL Syntax
- Added the following functions:
array_top_n: Returns the top N elements from an array ranked by value. #63376arrays_zip: Combines multiple arrays element-wise into an array of structs. #65556json_pretty: Formats a JSON string with indentation. #66695json_set: Sets a value at a specified path within a JSON string. #66193initcap: Converts the first letter of each word to uppercase. #66837sum_map: Sums MAP values across rows with the same key. #67482current_timezone: Returns the current session timezone. #63653current_warehouse: Returns the name of the current warehouse. #66401sec_to_time: Converts the number of seconds to a TIME value. #62797ai_query: Calls an external AI model from SQL for inference workloads. #61583raise_error: Raises a user-defined error in SQL expressions. #69661
- Provides the following function or syntactic extensions:
- Supports a lambda comparator in
array_sortfor custom sort ordering. #66607 - Supports USING clause for FULL OUTER JOIN with SQL-standard semantics. #65122
- Supports DISTINCT aggregation over framed window functions with ORDER BY/PARTITION BY. #65815 #65030 #67453
- Supports ARRAY type in
lead/lag/first_value/last_valuewindow functions. #63547 - Supports VARBINARY for count distinct-like aggregate functions. #68442
- Supports date and string type casting in IN expressions. #61746
- Supports WITH LABEL syntax for BEGIN/START TRANSACTION. #68320
- Supports WHERE/ORDER/LIMIT clauses in SHOW statements. #68834
- Supports
ALTER TASKstatements for task management. #68675 - Supports multiple compression formats (GZIP/SNAPPY/ZSTD/LZ4/DEFLATE/ZLIB/BZIP2) for CSV file exports. #68054
- Supports
STRUCT_CAST_BY_NAMESQL mode for name-based struct field matching. #69845
- Supports a lambda comparator in
Management & Observability
- Supports
warehouses,cpu_weight_percent, andexclusive_cpu_weightattributes for resource groups to improve multi-warehouse CPU resource isolation. #66947 - Introduces the
information_schema.fe_threadssystem view to inspect the FE thread state. #65431 - Supports SQL Digest Blacklist to block specific query patterns at the cluster level. #66499
- Supports Arrow Flight Data Retrieval from nodes that are otherwise inaccessible due to network topology constraints. #66348
- Introduces the REFRESH CONNECTIONS command to propagate global variable changes to existing connections without reconnecting. #64964
- Added built-in UI functions to analyze query profiles and view formatted SQL, making query tuning more accessible. #63867
- Implements
ClusterSummaryActionV2API endpoint to provide a structured cluster overview. #68836 - Added a global read-only system variable
@@run_modeto query the current cluster run mode (shared-data or shared-nothing). #69247 - Enabled
query_queue_v2by default for improved query queue management. #67462 - Supports user-level default warehouse for Stream Load and Merge Commit operations. #68106 #68616
- Added
skip_black_listsession variable to bypass backend blacklist verification when needed. #67467 - Added
enable_table_metrics_collectoption for the metrics API. #68691 - Added impersonate user support for query detail HTTP API. #68674
- Added
table_query_timeoutas a table-level property. #67547 - Supports adding FE observer nodes. #67778
- Supports Merge Commit information in
information_schema.loadsfor better load job visibility. #67879 - Supports showing tablet status in cloud-native tables for better troubleshooting. #69616
Security
- [CVE-2026-33870] [CVE-2026-33871] Replaced AWS bundle and bumped Netty to 4.1.132.Final. #71017
- [CVE-2025-27821] Upgraded Hadoop to v3.4.2. #68529
- [CVE-2025-54920] Upgraded
spark-core_2.12to 3.5.7. #70862
Bug Fixes
The following issues have been fixed:
- Fixed data loss after tablet split by skipping data file deletion for range distribution tablets. #71135
- Fixed a memory leak in
DefaultValueColumnIteratorfor complex types. #71142 - Fixed a memory leak caused by
shared_ptrcycle betweenBatchUnitandFetchTaskContext. #71126 - Fixed double-free crash in SystemMetrics due to concurrent getline access. #71040
- Fixed crash in SpillMemTableSink when eager merge consumes all blocks. #69046
- Fixed NPE when auto-created partition is dropped by TTL cleaner. #68257
- Fixed NPE in
IcebergCatalog.getPartitionLastUpdatedTimewhen snapshot is expired. #68925 - Fixed incorrect predicate rewrite for outer join with constant-side column reference. #67072
- Fixed error query results after modify CHAR column length in shared-data. #68808
- Fixed MV refresh bug in the case of multiple tables. #61763
- Fixed incorrect MV recycle time if force refreshed. #68673
- Fixed all-null value handling bug in sync MV. #69136
- Fixed duplicate column id error when querying MV after fast schema change ADD COLUMN. #71072
- Fixed low-cardinality rewrite NPE caused by shared DecodeInfo. #68799
- Fixed low-cardinality join predicate type mismatch. #68568
- Fixed Segfault in Parquet Page Index Filter when
null_countsempty. #68463 - Fixed JSON flatten array and object conflict on identical paths. #68804
- Fixed Iceberg cache weigher inaccuracies. #69058
- Fixed Iceberg table cache memory limit. #67769
- Fixed Iceberg delete column nullability issue. #68649
- Fixed Azure ABFS/WASB FileSystem cache key to include container. #68901
- Fixed deadlock when the HMS connection pool is full. #68033
- Fixed incorrect length for VARCHAR field type in Paimon Catalog. #68383
- Fixed Paimon catalog refresh crash with ClassCastException on ObjectTable. #70224
- Fixed FULL OUTER JOIN USING with constant subqueries. #69028
- Fixed join on clause bug with CTE scope. #68809
- Fixed ConnectContext memory leaks by using bindScope() pattern. #68215
- Fixed memory leak in
CatalogRecycleBin.asyncDeleteForTablesfor shared-nothing clusters. #68275 - Fixed Thrift accept thread from exiting when it encounters any exception. #68644
- Fixed UDF resolution in routine load column mappings. #68201
- Fixed
DROP FUNCTION IF EXISTSignoringifExistsflag. #69216 - Fixed scan result error when dict page is too large. #68258
- Fixed range partition overlap. #68255
- Fixed query queue allocation time and pending timeout. #65802
- Fixed
array_mapcrash when processing null literal array. #70629 - Fixed stack overflow for
to_base64. #70623 - Fixed case-insensitive username normalization for LDAP authentication. #67966
- Mitigated SSRF risk for API
proc_file. #68997 - Masked user auth strings in audit and SQL redaction. #70360
Behavior Changes
- ETL execution mode optimizations are now enabled by default. This benefits INSERT INTO SELECT, CREATE TABLE AS SELECT, and similar batch workloads without explicit configuration changes. #66841
- The third argument of
lag/leadwindow functions now supports column references in addition to constant values. #60209 - FULL OUTER JOIN USING now follows SQL-standard semantics: the USING column appears once in the output instead of twice. #65122
query_queue_v2is now enabled by default. #67462- SQL transactions are gated behind the session variable
enable_sql_transactionby default. #63535