{"record":{"id":"94510cb1bbafad9f","repo":"apache/druid","slug":"fixedbucketshistogramaggregator-does-not-support-g-94510c","errorCode":null,"errorMessage":"FixedBucketsHistogramAggregator does not support getDouble()","messagePattern":"FixedBucketsHistogramAggregator does not support getDouble\\(\\)","errorType":"exception","errorClass":"java.lang.UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregator.java","lineNumber":94,"sourceCode":"    return histogram;\n  }\n\n  @Override\n  public float getFloat()\n  {\n    throw new UnsupportedOperationException(\"FixedBucketsHistogramAggregator does not support getFloat()\");\n  }\n\n  @Override\n  public long getLong()\n  {\n    throw new UnsupportedOperationException(\"FixedBucketsHistogramAggregator does not support getLong()\");\n  }\n\n  @Override\n  public double getDouble()\n  {\n    throw new UnsupportedOperationException(\"FixedBucketsHistogramAggregator does not support getDouble()\");\n  }\n\n  @Override\n  public boolean isNull()\n  {\n    return false;\n  }\n\n  @Override\n  public void close()\n  {\n\n  }\n}\n","sourceCodeStart":76,"sourceCodeEnd":109,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregator.java#L76-L109","documentation":"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.","triggerScenarios":"Thrown at extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregator.java:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Access the histogram via get()/ObjectResult instead of getDouble().","Use a numeric aggregator if a double result is required."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b90983fd291f26935af934383ce360473179e4d","analyzedAt":"2026-09-07T13:32:30.957Z","contentChangedAt":"2026-09-07T13:32:30.957Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}