{"record":{"id":"7871a489e769a872","repo":"apache/druid","slug":"does-not-support-getlong","errorCode":null,"errorMessage":" does not support getLong()","messagePattern":" does not support getLong\\(\\)","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"extensions-contrib/compressed-bigdecimal/src/main/java/org/apache/druid/compressedbigdecimal/aggregator/CompressedBigDecimalAggregateCombinerBase.java","lineNumber":61,"sourceCode":"  @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  {\n    return CompressedBigDecimal.class;\n  }\n}\n","sourceCodeStart":43,"sourceCodeEnd":77,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/extensions-contrib/compressed-bigdecimal/src/main/java/org/apache/druid/compressedbigdecimal/aggregator/CompressedBigDecimalAggregateCombinerBase.java#L43-L77","documentation":"Guard thrown by the compressed-bigdecimal AggregateCombiner base when getLong() is called. A CompressedBigDecimal cannot be delivered as a long primitive through this interface, so the combiner deliberately rejects long access; queries must read the value with getObject() or getDouble() instead.","triggerScenarios":"Thrown at extensions-contrib/compressed-bigdecimal/src/main/java/org/apache/druid/compressedbigdecimal/aggregator/CompressedBigDecimalAggregateCombinerBase.java:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use getObject() to read the CompressedBigDecimal value.","Avoid using this aggregator in long-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"}