Skip to content

Apache DataFusion SQL Query Engine

fix docs: array_pop_first should be array_pop_front (#8797)

Chih Wang72cfc809aec6
diff --git a/docs/source/user-guide/sql/scalar_functions.md b/docs/source/user-guide/sql/scalar_functions.md
index 629a5f6ecb..9dd008f8fc 100644
--- a/docs/source/user-guide/sql/scalar_functions.md
+++ b/docs/source/user-guide/sql/scalar_functions.md
@@ -1970,7 +1970,7 @@ array_prepend(element, array)
Returns the array without the first element.
```
-array_pop_first(array)
+array_pop_front(array)
```
#### Arguments
@@ -1981,9 +1981,9 @@ array_pop_first(array)
#### Example
```
-❯ select array_pop_first([1, 2, 3]);
+❯ select array_pop_front([1, 2, 3]);
+-------------------------------+
-| array_pop_first(List([1,2,3])) |
+| array_pop_front(List([1,2,3])) |
+-------------------------------+
| [2, 3] |
+-------------------------------+