Skip to content

[BUG] Cardinality aggregate query failed with Data too large for [<reused_arrays>] #4834

Open

Description

@LantaoJin

What is the bug?
Q14 (and its plan) failed with

"details": "Shard[0]: CircuitBreakingException[[parent] Data too large, data for [<reused_arrays>] would be [16322276464/15.2gb], which is larger than the limit of [16320875724/15.1gb], real usage: [16322260080/15.2gb], new bytes reserved: [16384/16kb], usages [request=3405779072/3.1gb, fielddata=182331967/173.8mb, in_flight_requests=272/272b]]

The DSL query failed either

{
  "from": 0,
  "size": 0,
  "timeout": "1m",
  "query": {
    "bool": {
      "must": [
        {
          "exists": {
            "field": "SearchPhrase",
            "boost": 1
          }
        }
      ],
      "must_not": [
        {
          "term": {
            "SearchPhrase": {
              "value": "",
              "boost": 1
            }
          }
        }
      ],
      "adjust_pure_negative": true,
      "boost": 1
    }
  },
  "aggregations": {
    "SearchPhrase": {
      "terms": {
        "field": "SearchPhrase",
        "size": 10,
        "min_doc_count": 1,
        "shard_min_doc_count": 0,
        "show_term_doc_count_error": false,
        "order": [
          {
            "u": "desc"
          },
          {
            "_key": "asc"
          }
        ]
      },
      "aggregations": {
        "u": {
          "cardinality": {
            "field": "UserID"
          }
        }
      }
    }
  }
}

This issue is OpenSearch Core related, cannot be fixed within SQL plugin

Activity

  1. added
    bug
    on Nov 20, 2025
  2. self-assigned this
    on Nov 20, 2025
  3. moved this from Not Started to Pending in PPL Trackeron Jan 12, 2026
  4. added
    PPL
    on Apr 10, 2026
  5. added
    dependencies
    on Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLbugclickbenchdependencies

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions