{"record":{"id":"167dd38366999404","repo":"prestodb/presto","slug":"in-differential-entropy-udf-unsupported-arguments","errorCode":null,"errorMessage":"In differential_entropy UDF, unsupported arguments for type: %s","messagePattern":"In differential_entropy UDF, unsupported arguments for type: (.+?)","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/DifferentialEntropyStateStrategy.java","lineNumber":163,"sourceCode":"    void mergeWith(DifferentialEntropyStateStrategy other);\n\n    DifferentialEntropyStateStrategy clone();\n\n    default void validateParameters(long size, double sample, double weight, double min, double max)\n    {\n        throw new UnsupportedOperationException(\n                format(\"In differential_entropy UDF, unsupported arguments for type: %s\", getClass().getSimpleName()));\n    }\n\n    default void validateParameters(long size, double sample, double weight)\n    {\n        throw new UnsupportedOperationException(\n                format(\"In differential_entropy UDF, unsupported arguments for type: %s\", getClass().getSimpleName()));\n    }\n\n    default void validateParameters(long size, double sample)\n    {\n        throw new UnsupportedOperationException(\n                format(\"In differential_entropy UDF, unsupported arguments for type: %s\", getClass().getSimpleName()));\n    }\n\n    static void serialize(DifferentialEntropyStateStrategy strategy, SliceOutput sliceOut)\n    {\n        sliceOut.appendInt(DifferentialEntropyStateStrategy.class.getSimpleName().hashCode());\n        if (strategy == null) {\n            sliceOut.appendInt(0);\n            return;\n        }\n\n        if (strategy instanceof UnweightedReservoirSampleStateStrategy) {\n            sliceOut.appendInt(1);\n        }\n        else if (strategy instanceof WeightedReservoirSampleStateStrategy) {\n            sliceOut.appendInt(2);\n        }\n        else if (strategy instanceof FixedHistogramMleStateStrategy) {","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/DifferentialEntropyStateStrategy.java#L145-L181","documentation":"Default (unsupported) implementation of validateParameters on a differential_entropy state strategy: the concrete strategy variant cannot interpret the given combination of size/sample/weight/min/max arguments, so parameter validation itself is rejected for this strategy type.","triggerScenarios":"Thrown at presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/differentialentropy/DifferentialEntropyStateStrategy.java:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the full parameter set (bucket size, sample, weight, min, max) that this strategy requires","Choose a strategy/method whose parameter signature matches your call","Check the differential_entropy documentation for per-method required arguments"],"exampleFix":null,"handlingStrategy":"validation","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"}