You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/ppl/cmd/mvexpand.rst
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,14 +154,19 @@ Output (example)::
154
154
| error |
155
155
+-------+
156
156
157
-
Example 5: Large Arrays and Memory Limits
158
-
----------------------------------------
159
-
If an array is very large it can trigger engine/cluster resource limits (memory, circuit-breakers, or query execution limits). Note: this behavior is enforced by the underlying engine and cluster settings, not by a mvexpand-specific configuration.
157
+
Example 5: Large Arrays and Memory / resource limits
If an array is very large it can trigger engine or cluster resource limits and the query can fail with an error. There is no mvexpand-specific configuration flag that controls resource usage; instead, limits are enforced by the engine and the cluster:
160
+
161
+
- OpenSearch node-level protections (circuit breakers and JVM/heap safeguards) and request-size protections.
162
+
- SQL/PPL execution limits (for example, query timeouts, request-size limits, and engine memory budgets) that apply to the query execution layer.
163
+
164
+
Behavior of circuit breakers and which operators they protect can vary by release and configuration (some breakers primarily protect memory-heavy operations such as fielddata, aggregations, and certain scan implementations). Because of these distinctions, mvexpand should not be relied on to bypass cluster-level protections — use the command-level ``limit`` to bound per-document expansion and avoid hitting cluster limits.
160
165
161
166
To avoid failures when expanding large arrays:
162
167
- Use the `limit` parameter to restrict the number of expanded values per document (for example: `mvexpand field limit=1000`).
163
168
- Filter or narrow the input before expanding (use `where` and `fields` to reduce rows and columns).
164
-
- Tune cluster and SQL/PPL execution settings (circuit breakers, query size/timeouts, memory limits) appropriate for your deployment.
169
+
- Tune cluster and SQL/PPL execution settings (circuit breakers, request/response size, timeouts, memory limits) appropriate for your deployment. If desired, we can add links to the exact OpenSearch circuit-breaker and SQL/PPL configuration docs for the targeted release.
0 commit comments