Skip to content

Commit

Permalink
fix docs: array_pop_first should be array_pop_front (apache#8797)
Browse files Browse the repository at this point in the history
  • Loading branch information
ongchi authored Jan 9, 2024
1 parent 7f3b9b8 commit 72cfc80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/user-guide/sql/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ array_prepend(element, array)
Returns the array without the first element.

```
array_pop_first(array)
array_pop_front(array)
```

#### Arguments
Expand All @@ -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] |
+-------------------------------+
Expand Down

0 comments on commit 72cfc80

Please sign in to comment.