Skip to content

Commit 6b264d8

Browse files
committed
Fix typos
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent bc7899c commit 6b264d8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/user/ppl/cmd/expand.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The expand command generates one row per element in the specified array field:
2929
Syntax
3030
======
3131

32-
expand <field> [AS alias]
32+
expand <field> [as alias]
3333

3434
* field: The field to be expanded (exploded). Currently only nested arrays are supported.
3535
* alias: (Optional) The name to use instead of the original field name.
@@ -38,7 +38,7 @@ expand <field> [AS alias]
3838
Example: expand address field with an alias
3939
===========================================
4040

41-
Given a dataset ``mirgration`` with the following data:
41+
Given a dataset ``migration`` with the following data:
4242

4343
.. code-block::
4444
@@ -49,7 +49,7 @@ The following query expand the address field and rename it to addr:
4949

5050
PPL query::
5151

52-
PPL> source=mirgration | expand address as addr;
52+
PPL> source=migration | expand address as addr;
5353
fetched rows / total rows = 3/3
5454
+-------+-----+-------------------------------------------------------------------------------------------+
5555
| name | age | addr |

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalciteExpandCommandIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void testExpandOnNested() throws Exception {
143143

144144
// To consider in future releases: will expand on array (instead of nested) be supported.
145145
// In Opensearch, a string field can store either a single string or an array of strings.
146-
// This makes it difficult to implement expand on arries.
146+
// This makes it difficult to implement expand on arrays.
147147
@Ignore
148148
@Test
149149
public void testExpandOnArray() throws Exception {

0 commit comments

Comments
 (0)