Apache Druid 31.0.0

Release date
October 22, 2024
Release type
Major
Java
Java 8u92+, 11 or 17 supported; Java 17 recommended

Highlights

  • Window functions are generally available; the enableWindowing context is no longer needed.
  • Concurrent append and replace is generally available.
  • Compaction supervisors and MSQ-based auto-compaction.
  • Experimental projections: pre-aggregated groupings inside segments used automatically at query time.
  • Experimental Dart engine for complex queries such as large joins and high-cardinality group by.

Upgrade notes and incompatible changes

  • SQL ingestion arrayIngestMode now defaults to array. Wrap arrays with ARRAY_TO_MV to keep multi-value strings.
  • ZooKeeper-based segment loading is disabled. Move to HTTP-based segment loading before the upgrade.
  • The scan query legacy mode is removed.
  • Once flexible segment sorting or complex column compression is on, you can't downgrade below 31.0.0.
  • Task action audit logging is removed. Druid no longer uses the druid_taskLog table and ignores druid.indexer.auditlog.enabled.

Removals and deprecations

  • Removed: scan query legacy mode, Firehose and FirehoseFactory, task action audit logging, /lockedIntervals API.
  • Deprecated: Java 8 (removed in 32.0.0).
  • Deprecated: arrayIngestMode.

Upgrading to 31.0.0

From 30.x, switch to HTTP-based segment loading first, then review SQL ingestion jobs that write arrays. Skip 31.0.0 itself and run 31.0.2, which adds the topN and compression fixes from 31.0.1 and the CVE-2025-27888 fix. From 29.x or earlier, 30.0.0 removed ZooKeeper-based segment loading and several Coordinator configs. Read the upgrade notes for each skipped version. Deep.BI supports the Druid version you run and can help plan the upgrade.

Talk to a Druid engineer

Deep.BI supports the Druid version you run and can help plan the upgrade.