Skip to content

Commit

Permalink
Merge pull request #1886 from opensearch-project/backport/backport-18…
Browse files Browse the repository at this point in the history
…85-to-2.x

[Backport 2.x] Fixed missing underscores in day_of_week doctest
  • Loading branch information
GumpacG authored Jul 27, 2023
2 parents 11fa67d + feec843 commit e0407b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/user/ppl/functions/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -754,13 +754,13 @@ Synonyms: `DAYOFWEEK`_

Example::

os> source=people | eval `DAYOFWEEK(DATE('2020-08-26'))` = DAYOFWEEK(DATE('2020-08-26')) | fields `DAYOFWEEK(DATE('2020-08-26'))`
os> source=people | eval `DAY_OF_WEEK(DATE('2020-08-26'))` = DAY_OF_WEEK(DATE('2020-08-26')) | fields `DAY_OF_WEEK(DATE('2020-08-26'))`
fetched rows / total rows = 1/1
+---------------------------------+
| DAYOFWEEK(DATE('2020-08-26')) |
|---------------------------------|
| 4 |
+---------------------------------+
+-----------------------------------+
| DAY_OF_WEEK(DATE('2020-08-26')) |
|-----------------------------------|
| 4 |
+-----------------------------------+


DAYOFYEAR
Expand Down

0 comments on commit e0407b7

Please sign in to comment.