apache/druid · error · java.lang.UnsupportedOperationException
FixedBucketsHistogramAggregator does not support getDouble()
Error message
FixedBucketsHistogramAggregator does not support getDouble()
What it means
Guard thrown by FixedBucketsHistogramAggregator.getDouble(): like getLong/getFloat, double access is intentionally rejected because the aggregated value is a FixedBucketsHistogram with no single double representation. Fires when the engine requests a double-typed result from this aggregator; only get()/isNull() are supported on it.
Solutions
- Access the histogram via get()/ObjectResult instead of getDouble().
- Use a numeric aggregator if a double result is required.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregator.java:94 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/druid@9b90983fd2 (2026-09-07).
Data as JSON: /api/errors/94510cb1bbafad9f.
Report an issue: GitHub.
Appendix: source
Thrown at extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregator.java:94
return histogram;
}
@Override
public float getFloat()
{
throw new UnsupportedOperationException("FixedBucketsHistogramAggregator does not support getFloat()");
}
@Override
public long getLong()
{
throw new UnsupportedOperationException("FixedBucketsHistogramAggregator does not support getLong()");
}
@Override
public double getDouble()
{
throw new UnsupportedOperationException("FixedBucketsHistogramAggregator does not support getDouble()");
}
@Override
public boolean isNull()
{
return false;
}
@Override
public void close()
{
}
}
View on GitHub (pinned to 9b90983fd2)