elastic/elasticsearch · error · IllegalArgumentException

path not supported for [{getName()}]: {path}

Error message

path not supported for [{getName()}]: {path}

What it means

Error "path not supported for [{getName()}]: {path}" thrown in elastic/elasticsearch.

Source

Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/InternalMatrixStats.java:234

                default -> throw new IllegalArgumentException("Found unknown path element [" + element + "] in [" + getName() + "]");
            };
        } else if (path.size() == 1) {
            String element = path.get(0);
            if (results == null) {
                return emptyMap();
            }
            return switch (element) {
                case "counts" -> results.getFieldCounts();
                case "means" -> results.getMeans();
                case "variances" -> results.getVariances();
                case "skewness" -> results.getSkewness();
                case "kurtosis" -> results.getKurtosis();
                case "covariance" -> results.getCovariances();
                case "correlation" -> results.getCorrelations();
                default -> throw new IllegalArgumentException("Found unknown path element [" + element + "] in [" + getName() + "]");
            };
        } else {
            throw new IllegalArgumentException("path not supported for [" + getName() + "]: " + path);
        }
    }

    @Override
    protected AggregatorReducer getLeaderReducer(AggregationReduceContext reduceContext, int size) {
        return new AggregatorReducer() {
            private RunningStats runningStats;

            @Override
            public void accept(InternalAggregation aggregation) {
                final InternalMatrixStats internalMatrixStats = (InternalMatrixStats) aggregation;
                if (internalMatrixStats.stats != null) {
                    if (runningStats == null) {
                        runningStats = new RunningStats();
                    }
                    final Set<String> missingFields = runningStats.missingFieldNames(internalMatrixStats.stats);
                    if (missingFields.isEmpty() == false) {
                        throw new IllegalArgumentException(

View on GitHub (pinned to db6a809a66)

When it happens

Trigger: Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/InternalMatrixStats.java:234 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of elastic/elasticsearch@db6a809a66 (2026-08-12). Data as JSON: /api/errors/a53eac6d6f5b64e6. Report an issue: GitHub.