{"record":{"id":"1398318f253d08a7","repo":"apache/druid","slug":"cannot-handle-inputspec-of-class-s","errorCode":null,"errorMessage":"Cannot handle inputSpec of class [%s]","messagePattern":"Cannot handle inputSpec of class \\[(.+?)\\]","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"multi-stage-query/src/main/java/org/apache/druid/msq/input/MapInputSliceReader.java","lineNumber":59,"sourceCode":"  }\n\n  @Override\n  public PhysicalInputSlice attach(\n      int inputNumber,\n      InputSlice slice,\n      CounterTracker counters,\n      Consumer<Throwable> warningPublisher\n  )\n  {\n    return getReader(slice.getClass()).attach(inputNumber, slice, counters, warningPublisher);\n  }\n\n  private InputSliceReader getReader(final Class<? extends InputSlice> clazz)\n  {\n    final InputSliceReader reader = readerMap.get(clazz);\n\n    if (reader == null) {\n      throw new ISE(\"Cannot handle inputSpec of class [%s]\", clazz.getName());\n    }\n\n    return reader;\n  }\n}\n","sourceCodeStart":41,"sourceCodeEnd":65,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/multi-stage-query/src/main/java/org/apache/druid/msq/input/MapInputSliceReader.java#L41-L65","documentation":"getReader looks up an InputSliceReader by the concrete InputSlice class in readerMap and throws this ISE when the class is not registered. It is a type-dispatch guard in MapInputSliceReader: a slice type (e.g. some external or inline slice) reached a reader that was never configured to handle it, indicating a planning/registration mismatch.","triggerScenarios":"Thrown at multi-stage-query/src/main/java/org/apache/druid/msq/input/MapInputSliceReader.java:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the input spec for the query stage was built with readers matching all slice types used by the plan.","If using extensions or custom inputs, ensure the InputSliceReader was registered in the readerMap at construction.","Report as a bug with the query plan if all inputs are standard (table/external/inline)."],"exampleFix":null,"handlingStrategy":"type-guard","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"}