{"record":{"id":"e026a07fd63bc8f2","repo":"prestodb/presto","slug":"unsupported-values-type","errorCode":null,"errorMessage":"Unsupported  values type: ","messagePattern":"Unsupported  values type: ","errorType":"exception","errorClass":"ParquetDecodingException","httpStatus":null,"severity":"error","filePath":"presto-parquet/src/main/java/com/facebook/presto/parquet/ParquetEncoding.java","lineNumber":209,"sourceCode":"            return true;\n        }\n    };\n\n    static final int INT96_TYPE_LENGTH = 12;\n\n    static int getMaxLevel(ColumnDescriptor descriptor, ValuesType valuesType)\n    {\n        switch (valuesType) {\n            case REPETITION_LEVEL:\n                return descriptor.getMaxRepetitionLevel();\n            case DEFINITION_LEVEL:\n                return descriptor.getMaxDefinitionLevel();\n            case VALUES:\n                if (descriptor.getType() == BOOLEAN) {\n                    return 1;\n                }\n            default:\n                throw new ParquetDecodingException(\"Unsupported  values type: \" + valuesType);\n        }\n    }\n\n    public boolean usesDictionary()\n    {\n        return false;\n    }\n\n    public Dictionary initDictionary(ColumnDescriptor descriptor, DictionaryPage dictionaryPage)\n            throws IOException\n    {\n        throw new UnsupportedOperationException(\" Dictionary encoding is not supported for: \" + name());\n    }\n\n    public ValuesReader getValuesReader(ColumnDescriptor descriptor, ValuesType valuesType)\n    {\n        throw new UnsupportedOperationException(\"Error decoding  values in encoding: \" + this.name());\n    }","sourceCodeStart":191,"sourceCodeEnd":227,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-parquet/src/main/java/com/facebook/presto/parquet/ParquetEncoding.java#L191-L227","documentation":"Sentinel guard in getMaxLevel: the ValuesType argument (repetition level, definition level, or values) is not one of the enumerated cases, so the max bit-width for level encoding cannot be determined. In practice only a caller bug or a new unhandled ValuesType reaches this.","triggerScenarios":"Thrown at presto-parquet/src/main/java/com/facebook/presto/parquet/ParquetEncoding.java:209 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the caller to pass REPETITION_LEVEL, DEFINITION_LEVEL or VALUES","Add a case for the new ValuesType if extending the reader","Update Presto if caused by an internal regression"],"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"}