{"record":{"id":"e99d277f99d9c39d","repo":"prestodb/presto","slug":"invalid-session-property-e99d27","errorCode":"INVALID_SESSION_PROPERTY","errorMessage":"${MINIMUM_ASSIGNED_SPLIT_WEIGHT} must be > 0 and <= 1.0: ${value}","messagePattern":"(.+?) must be > 0 and <= 1\\.0: (.+?)","errorType":"validation","errorClass":"PrestoException","httpStatus":null,"severity":"error","filePath":"presto-hudi/src/main/java/com/facebook/presto/hudi/HudiSessionProperties.java","lineNumber":80,"sourceCode":"                        format(\"If enabled, size-based splitting ensures that each batch of splits has enough data to process as defined by %s\", STANDARD_SPLIT_WEIGHT_SIZE),\n                        hudiConfig.isSizeBasedSplitWeightsEnabled(),\n                        false),\n                dataSizeProperty(\n                        STANDARD_SPLIT_WEIGHT_SIZE,\n                        \"The split size corresponding to the standard weight (1.0) when size-based split weights are enabled\",\n                        hudiConfig.getStandardSplitWeightSize(),\n                        false),\n                new PropertyMetadata<>(\n                        MINIMUM_ASSIGNED_SPLIT_WEIGHT,\n                        \"Minimum assigned split weight when size-based split weights are enabled\",\n                        DOUBLE,\n                        Double.class,\n                        hudiConfig.getMinimumAssignedSplitWeight(),\n                        false,\n                        value -> {\n                            double doubleValue = ((Number) value).doubleValue();\n                            if (!Double.isFinite(doubleValue) || doubleValue <= 0 || doubleValue > 1) {\n                                throw new PrestoException(INVALID_SESSION_PROPERTY, format(\"%s must be > 0 and <= 1.0: %s\", MINIMUM_ASSIGNED_SPLIT_WEIGHT, value));\n                            }\n                            return doubleValue;\n                        },\n                        value -> value),\n                integerProperty(\n                        MAX_OUTSTANDING_SPLITS,\n                        \"Maximum outstanding splits per batch for query\",\n                        hudiConfig.getMaxOutstandingSplits(),\n                        false),\n                integerProperty(\n                        SPLIT_GENERATOR_PARALLELISM,\n                        \"Number of threads used to generate splits from partitions\",\n                        hudiConfig.getSplitGeneratorParallelism(),\n                        false));\n    }\n\n    public List<PropertyMetadata<?>> getSessionProperties()\n    {","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-hudi/src/main/java/com/facebook/presto/hudi/HudiSessionProperties.java#L62-L98","documentation":"Session property validation for the Hudi connector: the minimum-assigned-split-weight session property is parsed and range-checked when building session properties; a value outside (0, 1.0] fails this check at connector setup, indicating an invalid numeric configuration for split weight distribution.","triggerScenarios":"Thrown at presto-hudi/src/main/java/com/facebook/presto/hudi/HudiSessionProperties.java:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the session property to a value in (0, 1.0], e.g. 0.05","Fix the default value in the Hudi connector configuration if it is out of range"],"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"}