{"record":{"id":"ddec3c6aac0580dc","repo":"prestodb/presto","slug":"is-not-supported","errorCode":null,"errorMessage":" is not supported","messagePattern":" is not supported","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"presto-hive/src/main/java/com/facebook/presto/hive/orc/AggregatedOrcPageSource.java","lineNumber":122,"sourceCode":"            FunctionHandle functionHandle = aggregation.getFunctionHandle();\n\n            if (functionResolution.isCountFunction(functionHandle)) {\n                if (aggregation.getArguments().isEmpty()) {\n                    blockBuilder = blockBuilder.writeLong(footer.getNumberOfRows());\n                }\n                else {\n                    writeNonNullCount(columnIndex, blockBuilder);\n                }\n                completedBytes += INTEGER.getFixedSize();\n            }\n            else if (functionResolution.isMaxFunction(functionHandle)) {\n                writeMinMax(columnIndex, type, columnHandle.getHiveType(), blockBuilder, false);\n            }\n            else if (functionResolution.isMinFunction(functionHandle)) {\n                writeMinMax(columnIndex, type, columnHandle.getHiveType(), blockBuilder, true);\n            }\n            else {\n                throw new UnsupportedOperationException(aggregation.getFunctionHandle().toString() + \" is not supported\");\n            }\n            blocks[fieldId] = blockBuilder.build();\n        }\n\n        completed = true;\n        readTimeNanos += System.nanoTime() - start;\n        return new Page(batchSize, blocks);\n    }\n\n    private void writeMinMax(int columnIndex, Type type, HiveType hiveType, BlockBuilder blockBuilder, boolean isMin)\n    {\n        ColumnStatistics columnStatistics = footer.getFileStats().get(columnIndex + 1);\n        OrcType orcType = footer.getTypes().get(columnIndex + 1);\n\n        if (type instanceof FixedWidthType) {\n            completedBytes += ((FixedWidthType) type).getFixedSize();\n        }\n","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-hive/src/main/java/com/facebook/presto/hive/orc/AggregatedOrcPageSource.java#L104-L140","documentation":"Aggregation pushdown dispatch on ORC metadata: the pushed-down aggregation function is neither count, min, nor max (the only ones satisfiable from column statistics), so the aggregated page source cannot answer it.","triggerScenarios":"Thrown at presto-hive/src/main/java/com/facebook/presto/hive/orc/AggregatedOrcPageSource.java:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Disable partial-aggregation pushdown for this query (hive.pushdown_partial_aggregations_into_scan=false)","Restrict pushed-down aggregations to count/min/max"],"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"}