﻿---
title: ES|QL MV_EXPAND command
description: 
url: https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/130564/reference/query-languages/esql/commands/mv_expand
---

# ES|QL MV_EXPAND command
```yaml
serverless: preview
stack: preview
```

The `MV_EXPAND` processing command expands multivalued columns into one row per
value, duplicating other columns.
**Syntax**
```esql
MV_EXPAND column
```

**Parameters**
<definitions>
  <definition term="column">
    The multivalued column to expand.
  </definition>
</definitions>

<warning>
  The output rows produced by `MV_EXPAND` can be in any order and may not respect
  preceding `SORT`s. To guarantee a certain ordering, place a `SORT` after any
  `MV_EXPAND`s.
</warning>

**Example**
```esql
ROW a=[1,2,3], b="b", j=["a","b"]
| MV_EXPAND a
```


| a:integer | b:keyword | j:keyword  |
|-----------|-----------|------------|
| 1         | b         | ["a", "b"] |
| 2         | b         | ["a", "b"] |
| 3         | b         | ["a", "b"] |