{"record":{"id":"bff012bcf8dd10ff","repo":"prestodb/presto","slug":"stream-type-not-implemented-yet","errorCode":null,"errorMessage":" stream type not implemented yet","messagePattern":" stream type not implemented yet","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcMetadataReader.java","lineNumber":547,"sourceCode":"                return OrcTypeKind.TIMESTAMP;\n            case LIST:\n                return OrcTypeKind.LIST;\n            case MAP:\n                return OrcTypeKind.MAP;\n            case STRUCT:\n                return OrcTypeKind.STRUCT;\n            case UNION:\n                return OrcTypeKind.UNION;\n            case DECIMAL:\n                return OrcTypeKind.DECIMAL;\n            case DATE:\n                return OrcTypeKind.DATE;\n            case VARCHAR:\n                return OrcTypeKind.VARCHAR;\n            case CHAR:\n                return OrcTypeKind.CHAR;\n            default:\n                throw new IllegalStateException(typeKind + \" stream type not implemented yet\");\n        }\n    }\n\n    // This method assumes type attributes have no duplicate key\n    private static Map<String, String> toMap(List<OrcProto.StringPair> attributes)\n    {\n        ImmutableMap.Builder<String, String> results = new ImmutableMap.Builder<>();\n        if (attributes != null) {\n            for (OrcProto.StringPair attribute : attributes) {\n                if (attribute.hasKey() && attribute.hasValue()) {\n                    results.put(attribute.getKey(), attribute.getValue());\n                }\n            }\n        }\n        return results.build();\n    }\n\n    private static StreamKind toStreamKind(OrcProto.Stream.Kind streamKind)","sourceCodeStart":529,"sourceCodeEnd":565,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcMetadataReader.java#L529-L565","documentation":"ORC type-mapping guard in OrcMetadataReader.toTypeKind: the ORC file's type tree contains a kind with no mapping to an OrcTypeKind (the switch fell through to default). The file uses a column type this Presto build does not understand — either a newer ORC type or a corrupt type entry.","triggerScenarios":"Thrown at presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcMetadataReader.java:547 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade Presto to a version supporting the ORC type in question","Verify the file was written by a compatible ORC writer","Exclude the unsupported column/table from queries"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}