{"record":{"id":"20869b8170c094c1","repo":"apache/druid","slug":"could-not-find-the-column-type-for-column-s","errorCode":null,"errorMessage":"could not find the column type for column %s","messagePattern":"could not find the column type for column (.+?)","errorType":"validation","errorClass":"org.apache.druid.java.util.common.IAE","httpStatus":null,"severity":"error","filePath":"extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregatorFactory.java","lineNumber":113,"sourceCode":"\n  @Override\n  public BufferAggregator factorizeBuffered(ColumnSelectorFactory metricFactory)\n  {\n    return new FixedBucketsHistogramBufferAggregator(\n        metricFactory.makeColumnValueSelector(fieldName),\n        lowerLimit,\n        upperLimit,\n        numBuckets,\n        outlierHandlingMode\n    );\n  }\n\n  @Override\n  public VectorAggregator factorizeVector(VectorColumnSelectorFactory columnSelectorFactory)\n  {\n    ColumnCapabilities capabilities = columnSelectorFactory.getColumnCapabilities(fieldName);\n    if (null == capabilities) {\n      throw new IAE(\"could not find the column type for column %s\", fieldName);\n    }\n    if (capabilities.isNumeric()) {\n      return new FixedBucketsHistogramVectorAggregator(\n          columnSelectorFactory.makeValueSelector(fieldName),\n          lowerLimit,\n          upperLimit,\n          numBuckets,\n          outlierHandlingMode\n      );\n    } else {\n      throw new IAE(\"cannot vectorize fixed bucket histogram aggregation for type %s\", capabilities.asTypeString());\n    }\n  }\n\n  @Override\n  public boolean canVectorize(ColumnInspector columnInspector)\n  {\n    ColumnCapabilities capabilities = columnInspector.getColumnCapabilities(fieldName);","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregatorFactory.java#L95-L131","documentation":"Vectorized-engine setup failure in FixedBucketsHistogramAggregatorFactory.factorizeVector: the column capabilities for the configured fieldName could not be resolved from the selector factory, so the vector aggregator cannot determine how to read the column. Typically the column does not exist in the segment being queried.","triggerScenarios":"Thrown at extensions-core/histogram/src/main/java/org/apache/druid/query/aggregation/histogram/FixedBucketsHistogramAggregatorFactory.java:113 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the fieldName in the aggregation spec matches an existing column in the segments.","Check for segment/schema drift where some segments lack the histogram column.","Disable vectorization or fall back to the non-vector aggregator path if capabilities are unavailable."],"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"}