{"record":{"id":"a4fbb1b1dc5f1a75","repo":"apache/druid","slug":"does-not-support-getfloat","errorCode":null,"errorMessage":" does not support getFloat()","messagePattern":" does not support getFloat\\(\\)","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"extensions-contrib/compressed-bigdecimal/src/main/java/org/apache/druid/compressedbigdecimal/aggregator/CompressedBigDecimalAggregateCombinerBase.java","lineNumber":55,"sourceCode":"    this.className = className;\n  }\n\n  @Override\n  public abstract void reset(@SuppressWarnings(\"rawtypes\") ColumnValueSelector columnValueSelector);\n\n  @Override\n  public abstract void fold(@SuppressWarnings(\"rawtypes\") ColumnValueSelector columnValueSelector);\n\n  @Override\n  public double getDouble()\n  {\n    throw new UnsupportedOperationException(className + \" does not support getDouble()\");\n  }\n\n  @Override\n  public float getFloat()\n  {\n    throw new UnsupportedOperationException(className + \" does not support getFloat()\");\n  }\n\n  @Override\n  public long getLong()\n  {\n    throw new UnsupportedOperationException(className + \" does not support getLong()\");\n  }\n\n  @Nullable\n  @Override\n  public CompressedBigDecimal getObject()\n  {\n    return value;\n  }\n\n  @Override\n  public Class<CompressedBigDecimal> classOfObject()\n  {","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/extensions-contrib/compressed-bigdecimal/src/main/java/org/apache/druid/compressedbigdecimal/aggregator/CompressedBigDecimalAggregateCombinerBase.java#L37-L73","documentation":"Guard thrown by the AggregateCombiner base class of the compressed-bigdecimal extension when the query engine asks a combining aggregation for a float primitive. Combiners only expose their result as a CompressedBigDecimal (via getObject) or double, so getFloat() is intentionally unimplemented; the exception fires whenever a float-typed output is requested for this aggregator.","triggerScenarios":"Thrown at extensions-contrib/compressed-bigdecimal/src/main/java/org/apache/druid/compressedbigdecimal/aggregator/CompressedBigDecimalAggregateCombinerBase.java:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use getObject() to read the CompressedBigDecimal value.","Avoid using this aggregator in float-typed metric contexts."],"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"}