{"record":{"id":"ae752ed8be275e1d","repo":"prestodb/presto","slug":"unknown-page-format-s","errorCode":null,"errorMessage":"Unknown page format: %s","messagePattern":"Unknown page format: (.+?)","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"presto-grpc-api/src/main/java/com/facebook/presto/grpc/GrpcSqlFunctionExecutor.java","lineNumber":158,"sourceCode":"        }\n        return resultFuture;\n    }\n\n    private GrpcUdfPage buildGrpcUdfPage(Page input, List<Integer> channels, GrpcUdfPageFormat grpcUdfPageFormat)\n    {\n        Block[] blocks = new Block[channels.size()];\n        for (int i = 0; i < channels.size(); i++) {\n            blocks[i] = input.getBlock(channels.get(i));\n        }\n\n        switch (grpcUdfPageFormat) {\n            case Presto:\n                checkState(blockEncodingSerde != null, \"blockEncodingSerde not set\");\n                Page inputPage = wrapBlocksWithoutCopy(input.getPositionCount(), blocks);\n                GrpcSerializedPage grpcSerializedPage = toGrpcSerializedPage(blockEncodingSerde, inputPage);\n                return toGrpcUdfPage(grpcUdfPageFormat, grpcSerializedPage);\n            default:\n                throw new IllegalArgumentException(format(\"Unknown page format: %s\", grpcUdfPageFormat));\n        }\n    }\n\n    private SqlFunctionResult toSqlFunctionResult(GrpcUdfResult grpcUdfResult)\n    {\n        checkState(blockEncodingSerde != null, \"blockEncodingSerde not set\");\n        GrpcUdfPage grpcUdfPage = grpcUdfResult.getResult();\n\n        switch (grpcUdfPage.getGrpcUdfPageFormat()) {\n            case Presto:\n                Page resultPage = toPrestoPage(blockEncodingSerde, grpcUdfPage.getGrpcSerializedPage());\n                return new SqlFunctionResult(resultPage.getBlock(0), grpcUdfResult.getUdfStats().getTotalCpuTimeMs());\n            default:\n                throw new IllegalArgumentException(format(\"Unknown page format: %s\", grpcUdfPage.getGrpcUdfPageFormat()));\n        }\n    }\n}\n","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-grpc-api/src/main/java/com/facebook/presto/grpc/GrpcSqlFunctionExecutor.java#L140-L176","documentation":"Page-format dispatch in the gRPC UDF executor: the requested GrpcUdfPageFormat matches neither the Presto (block-encoding) nor the other handled format, so input pages cannot be serialized for the UDF call.","triggerScenarios":"Thrown at presto-grpc-api/src/main/java/com/facebook/presto/grpc/GrpcSqlFunctionExecutor.java:158 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set a supported gRPC UDF page format in the configuration","Ensure client and server agree on the page format value"],"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"}