This is an automated email from the ASF dual-hosted git repository.
adarshsanjeev pushed a commit to branch 32.0.0
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/32.0.0 by this push:
new 2511c386c98 docs: 32.0.0 release notes (#17641)
2511c386c98 is described below
commit 2511c386c9831ee830186e2ff8470b160c80c419
Author: 317brian <[email protected]>
AuthorDate: Thu Jan 30 00:50:13 2025 -0800
docs: 32.0.0 release notes (#17641)
* docs: 32.0.0 release notes
* jan 21
* highlighsts ection
* move projections
* fix img path
* update java and hadoop deprecations
* address comments
* add 17496
* update placeholder
* update 17406
* update spelling
* address comments
* replace placeholder with number of PRs in milestone
* Update docs/release-info/release-notes.md
Co-authored-by: Adarsh Sanjeev <[email protected]>
* Update docs/release-info/release-notes.md
Co-authored-by: Kashif Faraz <[email protected]>
* Update docs/release-info/release-notes.md
Co-authored-by: Kashif Faraz <[email protected]>
---------
Co-authored-by: Adarsh Sanjeev <[email protected]>
Co-authored-by: Kashif Faraz <[email protected]>
---
docs/release-info/explore_filtering.png | Bin 0 -> 292950 bytes
docs/release-info/explore_tiles.png | Bin 0 -> 362238 bytes
docs/release-info/explore_timechart.png | Bin 0 -> 309887 bytes
docs/release-info/release-notes.md | 288 ++++++++++++++++++++-
docs/release-info/webconsole_segment_timeline2.png | Bin 0 -> 223613 bytes
docs/release-info/webconsole_segmenttimeline1.png | Bin 0 -> 223936 bytes
website/.spelling | 6 +
7 files changed, 288 insertions(+), 6 deletions(-)
diff --git a/docs/release-info/explore_filtering.png
b/docs/release-info/explore_filtering.png
new file mode 100644
index 00000000000..898857f0cc4
Binary files /dev/null and b/docs/release-info/explore_filtering.png differ
diff --git a/docs/release-info/explore_tiles.png
b/docs/release-info/explore_tiles.png
new file mode 100644
index 00000000000..67826ced331
Binary files /dev/null and b/docs/release-info/explore_tiles.png differ
diff --git a/docs/release-info/explore_timechart.png
b/docs/release-info/explore_timechart.png
new file mode 100644
index 00000000000..e161ff4da6c
Binary files /dev/null and b/docs/release-info/explore_timechart.png differ
diff --git a/docs/release-info/release-notes.md
b/docs/release-info/release-notes.md
index 82e371e8406..fee1be4bff9 100644
--- a/docs/release-info/release-notes.md
+++ b/docs/release-info/release-notes.md
@@ -24,13 +24,13 @@ title: "Release notes"
<!--Replace {{DRUIDVERSION}} with the correct Druid version.-->
-Apache Druid {{DRUIDVERSION}} contains over $NUMBER_FEATURES new features, bug
fixes, performance enhancements, documentation improvements, and additional
test coverage from $NUMBER_OF_CONTRIBUTORS contributors.
+Apache Druid 32.0.0 contains over 220 new features, bug fixes, performance
enhancements, documentation improvements, and additional test coverage from 52
contributors.
<!--
Replace {{MILESTONE}} with the correct milestone number. For example:
https://github.com/apache/druid/issues?q=is%3Aclosed+milestone%3A28.0+sort%3Aupdated-desc+
-->
-See the [complete set of
changes](https://github.com/apache/druid/issues?q=is%3Aclosed+milestone%3A{{MILESTONE}}+sort%3Aupdated-desc+)
for additional details, including bug fixes.
+See the [complete set of
changes](https://github.com/apache/druid/issues?q=is%3Aclosed+milestone%3A32.0.0+sort%3Aupdated-desc+)
for additional details, including bug fixes.
Review the [upgrade notes](#upgrade-notes) and [incompatible
changes](#incompatible-changes) before you upgrade to Druid {{DRUIDVERSION}}.
If you are upgrading across multiple versions, see the [Upgrade
notes](upgrade-notes.md) page, which lists upgrade notes for the most recent
Druid versions.
@@ -53,44 +53,310 @@ If your release note contains images, put the images in
the release-info/assets
For tips about how to write a good release note, see [Release
notes](https://github.com/apache/druid/blob/master/CONTRIBUTING.md#release-notes).
-->
-## Important features, changes, and deprecations
+## Important features
This section contains important information about new and existing features.
+### New Overlord APIs
+
+APIs for marking segments as used or unused have been moved from the
Coordinator to the Overlord service:
+
+- Mark all segments of a datasource as unused:
+`POST /druid/indexer/v1/datasources/{dataSourceName}`
+
+- Mark all (non-overshadowed) segments of a datasource as used:
+`DELETE /druid/indexer/v1/datasources/{dataSourceName}`
+
+- Mark multiple segments as used
+`POST /druid/indexer/v1/datasources/{dataSourceName}/markUsed`
+- Mark multiple (non-overshadowed) segments as unused
+`POST /druid/indexer/v1/datasources/{dataSourceName}/markUnused`
+
+- Mark a single segment as used:
+`POST /druid/indexer/v1/datasources/{dataSourceName}/segments/{segmentId}`
+
+- Mark a single segment as unused:
+`DELETE /druid/indexer/v1/datasources/{dataSourceName}/segments/{segmentId}`
+
+As part of this change, the corresponding Coordinator APIs have been
deprecated and will be removed in a future release:
+
+- `POST /druid/coordinator/v1/datasources/{dataSourceName}`
+- `POST /druid/coordinator/v1/datasources/{dataSourceName}/markUsed`
+- `POST /druid/coordinator/v1/datasources/{dataSourceName}/markUnused`
+- `POST
/druid/coordinator/v1/datasources/{dataSourceName}/segments/{segmentId}`
+- `DELETE
/druid/coordinator/v1/datasources/{dataSourceName}/segments/{segmentId}`
+- `DELETE /druid/coordinator/v1/datasources/{dataSourceName}`
+
+The Coordinator now calls the Overlord to serve these requests.
+
+[#17545](https://github.com/apache/druid/pull/17545)
+
+
+### Realtime query processing for multi-value strings
+
+Realtime query processing no longer considers all strings as multi-value
strings during expression processing, fixing a number of bugs and unexpected
failures. This should also improve realtime query performance of expressions on
string columns.
+
+This change impacts topN queries for realtime segments where rows of data are
implicitly null, such as from a property missing from a JSON object.
+
+Before this change, these were handled as [] instead of null, leading to
inconsistency between processing realtime segments and published segments. When
processing segments, the value was treated as [], which topN ignores. After
publishing, the value became null, which topN does not ignore. The same query
could have different results before and after being persisted
+
+After this change, the topN engine now treats [] as null when processing
realtime segments, which is consistent with published segments.
+
+This change doesn't impact actual multi-value string columns, regardless of if
they're realtime.
+
+[#17386](https://github.com/apache/druid/pull/17386)
+
+### Join hints in MSQ task engine queries
+
+Druid now supports hints for SQL JOIN queries that use the MSQ task engine.
This allows queries to provide hints for the JOIN type that should be used at a
per join level. Join hints recursively affect sub queries.
+
+[#17541](https://github.com/apache/druid/pull/17541)
+
+## Changes and deprecations
+
+### ANSI-SQL compatibility and query results
+
+Support for the configs that let you maintain older behavior that wasn't
ANSI-SQL compliant have been removed:
+
+- `druid.generic.useDefaultValueForNull=true`
+- `druid.expressions.useStrictBooleans=false`
+- `druid.generic.useThreeValueLogicForNativeFilters=false`
+
+They no longer affect your query results. Only SQL-compliant non-legacy
behavior is supported now.
+
+If the configs are set to the legacy behavior, Druid services will fail to
start.
+
+If you want to continue to get the same results without these settings, you
must update your queries or your results will be incorrect after you upgrade.
+
+For more information about how to update your queries, see the [migration
guide](https://druid.apache.org/docs/latest/release-info/migr-ansi-sql-null).
+
+[#17568](https://github.com/apache/druid/pull/17568)
[#17609](https://github.com/apache/druid/pull/17609)
+
+### Java support
+
+Java support in Druid has been updated:
+
+- Java 8 support has been removed
+- Java 11 support is deprecated
+
+We recommend that you upgrade to Java 17.
+
+[#17466](https://github.com/apache/druid/pull/17466)
+
+### Hadoop-based ingestion
+
+Hadoop-based ingestion is now deprecated. We recommend that you migrate to
SQL-based ingestion.
+
+### Join hints in MSQ task engine queries
+
+Druid now supports hints for SQL JOIN queries that use the MSQ task engine.
This allows queries to provide hints for the JOIN type that should be used at a
per join level. Join hints recursively affect sub queries.
+
+```sql
+select /*+ sort_merge */ w1.cityName, w2.countryName
+from
+(
+ select /*+ broadcast */ w3.cityName AS cityName, w4.countryName AS
countryName from wikipedia w3 LEFT JOIN wikipedia-set2 w4 ON w3.regionName =
w4.regionName
+) w1
+JOIN wikipedia-set1 w2 ON w1.cityName = w2.cityName
+where w1.cityName='New York';
+```
+
+(#17406)
+
## Functional area and related changes
This section contains detailed release notes separated by areas.
### Web console
+#### Explore view (experimental)
+
+Several improvements have been made to the Explore view in the web console:
+
+The time chart visualization now supports zooming, dragging, and is smarter
about granularity detection:
+
+
+
+Filters been improved with helper tables and additional context:
+
+
+Tiles can now be shown side-by-side:
+
+
+[#17627](https://github.com/apache/druid/pull/17627)
+
+#### Segment timeline view
+
+The segment timeline is now more interactive and no longer forces day
granularity.
+
+**New view**
+
+
+
+**Old view:**
+
+
+[#17521](https://github.com/apache/druid/pull/17521)
+
#### Other web console improvements
+- The timezone picker now always shows your timezone
[#17521](https://github.com/apache/druid/pull/17521)
+- UNNEST is now supported for autocomplete suggestions
[#17521](https://github.com/apache/druid/pull/17521)
+- Tables now support less than and greater than filters
[#17521](https://github.com/apache/druid/pull/17521)
+- You can now resize the side panels in the Query view
[#17387](https://github.com/apache/druid/pull/17387)
+- Added the `expectedLoadTimeMillis` segment loading metric to the web console
[#17359](https://github.com/apache/druid/pull/17359)
+
### Ingestion
+#### Numbers for CSV and TSV input formats
+
+Use the new optional config `tryParseNumbers` for CSV and TSV input formats to
control how numbers are treated. If enabled, any numbers present in the input
will be parsed in the following manner:
+
+- long data type for integer types and
+- double for floating-point numbers
+
+By default, this configuration is set to false, so numeric strings will be
treated as strings.
+
+[#17082](https://github.com/apache/druid/pull/17082)
+
+#### Other ingestion improvements
+
+- Reduce the direct memory requirement on non-query processing tasks by not
reserving query buffers for them
[#16887](https://github.com/apache/druid/pull/16887)
+- JSON-based and SQL-based ingestion now support request headers when using an
HTTP input source [#16974](https://github.com/apache/druid/pull/16974)
+
#### SQL-based ingestion
-##### Other SQL-based ingestion improvements
+- SQL-based ingestion now supports dynamic parameters for queries besides
SELECT queries, such as REPLACE
[#17126](https://github.com/apache/druid/pull/17126)
+- Improved thread names to include the stage ID and worker number to help with
troubleshooting [#17324](https://github.com/apache/druid/pull/17324)
#### Streaming ingestion
+##### Control how many segments get merged for publishing
+
+You can now use the `maxColumnsToMerge` property in your supervisor spec to
specify the number of segments to merge in a single phase when merging segments
for publishing. This limit affects the total number of columns present in a set
of segments to merge. If the limit is exceeded, segment merging occurs in
multiple phases. Druid merges at least 2 segments each phase, regardless of
this setting.
+
+[#17030](https://github.com/apache/druid/pull/17030)
+
##### Other streaming ingestion improvements
+- Druid now fully supports early/late rejection periods when `stopTasksCount`
is configured and streaming tasks run longer than the configured task duration
[#17442](https://github.com/apache/druid/pull/17442)
+- Improved segment publishing when resubmitting supervisors or when task
publishing takes a long time
[#17509](https://github.com/apache/druid/pull/17509)
+
### Querying
+#### Window queries
+
+The following fields are deprecated for window queries that use the MSQ task
engine: `maxRowsMaterializedInWindow` and `partitionColumnNames`. They will be
removed in a future release.
+
+[#17433](https://github.com/apache/druid/pull/17433)
+
#### Other querying improvements
+- Added automatic query prioritization based on the period of the segments
scanned in a query. You can set the duration threshold in ISO format using
`druid.query.scheduler.prioritization.segmentRangeThreshold`
[#17009](https://github.com/apache/druid/pull/17009)
+- Improved error handling for incomplete queries. A trailer header to indicate
an error is returned now [#16672](https://github.com/apache/druid/pull/16672)
+- Improved scan queries to account for column types in more situations
[#17463](https://github.com/apache/druid/pull/17463)
+- Improved lookups so that they can now iterate over fetched data
[#17212](https://github.com/apache/druid/pull/17212)
+- Improved projections so that they can contain only aggregators and no
grouping columns [#17484](https://github.com/apache/druid/pull/17484)
+- Removed microseconds as a supported unit for EXTRACT
[#17247](https://github.com/apache/druid/pull/17247)
+
+
### Cluster management
+#### Reduce metadata IO
+
+The Overlord runtime property
`druid.indexer.tasklock.batchAllocationReduceMetadataIO` can help reduce IO
during batch segment allocation. Setting this flag to true (default value)
allows the Overlord to fetch only necessary segment payloads during segment
allocation.
+
+[#17496](https://github.com/apache/druid/pull/17496)
+
#### Other cluster management improvements
+- Druid can now run non-G1 Garbage Collectors with `JAVA_OPTS`
[#17078](https://github.com/apache/druid/pull/17078)
+- You no longer have to configure a temporary storage directory on the Middle
Manager for durable storage or exports. If it isn't configured, Druid uses the
task directory [#17015](https://github.com/apache/druid/pull/17015)
[#17335](https://github.com/apache/druid/pull/17335)
+- Improved autoscaling on supervisors so that tasks don't get published
needlessly [#17335](https://github.com/apache/druid/pull/17335)
+- Improved recovery time for Overlord leadership after ZooKeeper are bounced
[#17535](https://github.com/apache/druid/pull/17535)
+- Improved Druid to be more resilient of Druid service leadership changes due
to ZooKeeper outages [#17546](https://github.com/apache/druid/pull/17546)
+- Removed the following unused Coordinator dynamic configs: `mergeBytesLimit`
and `mergeSegmentsLimit` [#17384](https://github.com/apache/druid/pull/17384)
+
+
### Data management
+#### Sorting columns for compaction with the MSQ task engine (experimental)
+
+Compaction that uses the MSQ task engine now supports sorting segments with
non-time columns. If `forceSegmentSortByTime` is set in the compaction config
or the inferred schema, the following happens:
+
+- Skip adding `__time` explicitly as the first column to the dimension schema
since it already comes as part of the schema
+- Ensure column mappings propagate `__time` in the order specified by the
schema
+- Set `forceSegmentSortByTime` in the MSQ query context.
+
#### Other data management improvements
+- Improved centralized datasource schemas so that different permutations of
the same column order do not result in distinct schemas
[#17044](https://github.com/apache/druid/pull/17044)
+- Changed compaction tasks to always handle multi-value dimensions as arrays
if the column schema is not explicitly specified
[#17110](https://github.com/apache/druid/pull/17110)
+
+
### Metrics and monitoring
+#### New metrics for `GroupByStatsMonitor`:
+
+Druid now emits the following metrics for GroupBy queries:
+
+`mergeBuffer/used`: Number of merge buffers used
+`mergeBuffer/acquisitionTimeNs`: Total time required to acquire merge buffer
+`mergeBuffer/acquisition`: Number of queries that acquired a batch of merge
buffers
+`groupBy/spilledQueries`: Number of queries that spilled onto the disk
+`groupBy/spilledBytes`-> Spilled bytes on the disk
+`groupBy/mergeDictionarySize`: Size of the merging dictionary
+
+[#17360](https://github.com/apache/druid/pull/17360)
+
+
+#### CgroupV2 monitors (experimental)
+
+The following monitors for `cgroupv2` are now available:
+
+- CPU: `org.apache.druid.java.util.metrics.CgroupV2CpuMonitor`
+- disk usage `org.apache.druid.java.util.metrics.CgroupV2DiskMonitor`
+- memory `org.apache.druid.java.util.metrics.CgroupV2MemoryMonitor`
+
+[#16905](https://github.com/apache/druid/pull/16905)
+
+#### Other metrics and monitoring improvements
+
+- Added `ingest/notices/queueSize`, `ingest/notices/time`, and
`ingest/pause/time` metrics to the statsd emitter
[#17487](https://github.com/apache/druid/pull/17487)
[#17468](https://github.com/apache/druid/pull/17468)
+- Added duty group as a dimension for the `coordinator.global.time` metric for
the statsd-emitter [#17320](https://github.com/apache/druid/pull/17320)
+-The `service/heartbeat` metric now reports the status on the Peon
[#17488](https://github.com/apache/druid/pull/17488)
+- Changed real-time segment metrics so that they are for each Sink instead of
for each FireHydrant. This is a return to emission behavior prior to
improvements to real-time query performance made in
[30.0.0](https://github.com/apache/druid/pull/15757)
[#17170](https://github.com/apache/druid/pull/17170)
+- Changed query stats to be first before intervals in `getNativeQueryLine`
logging so that the stats are retained if the query object gets truncated
[#17326](https://github.com/apache/druid/pull/17326)
+
+
### Extensions
+#### Delta Lake
+
+- The Delta Lake input source now supports decimal data types and is handled
as a double. If the value cannot fit within a double, ingest it as a string
[#17376](https://github.com/apache/druid/pull/17376)
+- You can now filter by snap shot version even if if the version is 0
[#17367](https://github.com/apache/druid/pull/17367)
+
+#### gRPC queries
+
+A new contributor extension enabled a gRPC API for SQL and native queries,
which means that gRPC-based clients can use the extension to issue SQL queries.
Use this extension for simple queries.
+
+For more information, see [gRPC query extension for
Druid](https://github.com/apache/druid/tree/master/extensions-contrib/grpc-query).
+
+[#15982](https://github.com/apache/druid/pull/15982)
+
+#### Kubernetes
+
+- Middle Manger-less ingestion using Kubernetes is now more resilient to
Overlord restarts [#17446](https://github.com/apache/druid/pull/17446)
+- You can now pass empty arrays to type and dataSource keys in selector based
pod template selection strategy
[#17400](https://github.com/apache/druid/pull/17400)
+- Improved the TaskRunner to expose the `getMaximumCapacity` field
[#17107](https://github.com/apache/druid/pull/17107)
+
+#### Iceberg
+
+The Iceberg extension now supports the AWS Glue Iceberg catalog.
+
+[#17392](https://github.com/apache/druid/pull/17392)
+
+
### Documentation improvements
## Upgrade notes and incompatible changes
@@ -101,7 +367,7 @@ This section contains detailed release notes separated by
areas.
<!--Carry this forward until 32. Then move it to incompatible changes -->
-In Druid 32.0.0, the front coded dictionaries feature will be turned on by
default. Front-coded dictionaries reduce storage and improve performance by
optimizing for strings where the front part looks similar.
+In Druid 32.0.0, you can specify that Druid uses front-coded dictionaries
feature during segment creation. Front-coded dictionaries reduce storage and
improve performance by optimizing for strings where the front part looks
similar.
Once this feature is on, you cannot easily downgrade to an earlier version
that does not support the feature.
@@ -114,6 +380,16 @@ If you're already using this feature, you don't need to
take any action.
### Developer notes
+- Improved dependency support between extensions. When an extension has a
dependency on another extension, it now tries to use the dependency's class
loader to find classes required classes
[#16973](https://github.com/apache/druid/pull/16973)
+- Coordinator APIs for marking segments as used or unused are now deprecated
and will be removed in a future release. Use the corresponding Overlord APIs
instead. For a full list, see [New Overlord APIs](#new-overlord-apis) or
[#17545](https://github.com/apache/druid/pull/17545)
+
#### Dependency updates
-The following dependencies have had their versions bumped:
\ No newline at end of file
+The following dependencies have had their versions bumped:
+
+* `javax.xml.bind` is no longer used. Druid now uses `jakarta.xml.bind`
[#17370](https://github.com/apache/druid/pull/17370)
+* Several dependencies for the web console have had their dependencies
updated. For a full list, see
[#17381](https://github.com/apache/druid/pull/17381),
[#17365](https://github.com/apache/druid/pull/17365),
[#17363](https://github.com/apache/druid/pull/17363)
+* Removed `file-loader` dependency for the web console
[#17346](https://github.com/apache/druid/pull/17346)
+* Guice from 4.2.2 to 5.1.0
+* `git-commit-id-maven-plugin` from 4.9.10 to 9.0.1
[#17571](https://github.com/apache/druid/pull/17571)
+* Netty from version `4.1.108.Final` to `4.1.116.Final`
\ No newline at end of file
diff --git a/docs/release-info/webconsole_segment_timeline2.png
b/docs/release-info/webconsole_segment_timeline2.png
new file mode 100644
index 00000000000..225d200ab28
Binary files /dev/null and b/docs/release-info/webconsole_segment_timeline2.png
differ
diff --git a/docs/release-info/webconsole_segmenttimeline1.png
b/docs/release-info/webconsole_segmenttimeline1.png
new file mode 100644
index 00000000000..cd7b765c5d4
Binary files /dev/null and b/docs/release-info/webconsole_segmenttimeline1.png
differ
diff --git a/website/.spelling b/website/.spelling
index 1711a76fea2..da7563ffc6a 100644
--- a/website/.spelling
+++ b/website/.spelling
@@ -56,6 +56,7 @@ CORS
CNF
CPUs
CSVs
+centralized
CentralizedDatasourceSchema
Ceph
circledR
@@ -347,10 +348,12 @@ filterValue
firefox
firehose
firehoses
+FireHydrant
fromPigAvroStorage
frontends
granularities
granularitySpec
+gRPC
gzip
gzipped
hadoop
@@ -509,6 +512,7 @@ reingesting
reingestion
repo
requireSSL
+resize
rollup
rollups
ROW_NUMBER
@@ -2036,6 +2040,7 @@ autoscale
autoscalers
batch_index_task
cgroup
+cgroupv2
classloader
com.metamx
common.runtime.properties
@@ -2364,6 +2369,7 @@ druid-time-min-max
sqlserver-metadata-storage
graphite-emitter|Graphite metrics emitter
statsd-emitter|StatsD metrics emitter
+statsd
kafka-emitter|Kafka metrics emitter
druid-thrift-extensions
druid-opentsdb-emitter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]