Repository navigation
Release 32.0.1-patch5
Improvements
Add option to disable expression-based virtual column bitmap index creation, introduced in Apache Druid 29.0.0, which may cause performance regression for certain queries.
The new option can be enabled cluster wide via runtime properties or per query. By default, the option to skip index creation is disabled (consistent with Druid 32.0.1 behavior).
Usage
Cluster-wide (SQL only)
Set druid.sql.planner.calculateExpressionBitmapIndex=false in Broker runtime properties.
When set to false, this will make all the SQL queries to not calculate bitmap indexes for expression-based virtual columns. By default, it is set to true (index is created).
Per query
For SQL queries set the query context parameter calculateExpressionBitmapIndex to false to override the runtime property.
For example, using the API:
{
"query" : "SELECT COUNT(*) FROM data_source WHERE UPPER(foo) = 'BAR'",
"context" : {
"calculateExpressionBitmapIndex": false
}
}For native queries, set the enableBitmapIndexes field to false in the expression virtual column. For example:
{
"type": "expression",
"name": "fooUpper",
"expression": "upper('foo')",
"enableBitmapIndexes": false
}Note: This release includes all fixes and improvements from previous 32.0.1-patchX releases.