prestodb/presto · error · PrestoException

INVALID_SESSION_PROPERTY

INVALID_SESSION_PROPERTY

Error message

${MINIMUM_ASSIGNED_SPLIT_WEIGHT} must be > 0 and <= 1.0: ${value}

What it means

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.

Source

Thrown at presto-hudi/src/main/java/com/facebook/presto/hudi/HudiSessionProperties.java:80

                        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),
                        hudiConfig.isSizeBasedSplitWeightsEnabled(),
                        false),
                dataSizeProperty(
                        STANDARD_SPLIT_WEIGHT_SIZE,
                        "The split size corresponding to the standard weight (1.0) when size-based split weights are enabled",
                        hudiConfig.getStandardSplitWeightSize(),
                        false),
                new PropertyMetadata<>(
                        MINIMUM_ASSIGNED_SPLIT_WEIGHT,
                        "Minimum assigned split weight when size-based split weights are enabled",
                        DOUBLE,
                        Double.class,
                        hudiConfig.getMinimumAssignedSplitWeight(),
                        false,
                        value -> {
                            double doubleValue = ((Number) value).doubleValue();
                            if (!Double.isFinite(doubleValue) || doubleValue <= 0 || doubleValue > 1) {
                                throw new PrestoException(INVALID_SESSION_PROPERTY, format("%s must be > 0 and <= 1.0: %s", MINIMUM_ASSIGNED_SPLIT_WEIGHT, value));
                            }
                            return doubleValue;
                        },
                        value -> value),
                integerProperty(
                        MAX_OUTSTANDING_SPLITS,
                        "Maximum outstanding splits per batch for query",
                        hudiConfig.getMaxOutstandingSplits(),
                        false),
                integerProperty(
                        SPLIT_GENERATOR_PARALLELISM,
                        "Number of threads used to generate splits from partitions",
                        hudiConfig.getSplitGeneratorParallelism(),
                        false));
    }

    public List<PropertyMetadata<?>> getSessionProperties()
    {

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Set the session property to a value in (0, 1.0], e.g. 0.05
  2. Fix the default value in the Hudi connector configuration if it is out of range
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at presto-hudi/src/main/java/com/facebook/presto/hudi/HudiSessionProperties.java:80 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04). Data as JSON: /api/errors/e99d277f99d9c39d. Report an issue: GitHub.