Skip to content

Commit

Permalink
[8.11] ES|QL in-product help: DATE_TRUNC arg order (#171270) (#171285)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.11`:
- [ES|QL in-product help: DATE_TRUNC arg order
(#171270)](#171270)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Abdon
Pijpelink","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-15T12:39:24Z","message":"ES|QL
in-product help: DATE_TRUNC arg order (#171270)\n\nA small fix: the
arguments for ES|QL's DATE_TRUNC function were swapped\r\na while ago,
but that was never reflected in the in-product help. This\r\nPR fixes
that.","sha":"daaa4fd7ab0a592061b9fc82dc2afb8365272c0a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","Feature:ES|QL","v8.12.0"],"number":171270,"url":"https://github.com/elastic/kibana/pull/171270","mergeCommit":{"message":"ES|QL
in-product help: DATE_TRUNC arg order (#171270)\n\nA small fix: the
arguments for ES|QL's DATE_TRUNC function were swapped\r\na while ago,
but that was never reflected in the in-product help. This\r\nPR fixes
that.","sha":"daaa4fd7ab0a592061b9fc82dc2afb8365272c0a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171270","number":171270,"mergeCommit":{"message":"ES|QL
in-product help: DATE_TRUNC arg order (#171270)\n\nA small fix: the
arguments for ES|QL's DATE_TRUNC function were swapped\r\na while ago,
but that was never reflected in the in-product help. This\r\nPR fixes
that.","sha":"daaa4fd7ab0a592061b9fc82dc2afb8365272c0a"}}]}] BACKPORT-->

Co-authored-by: Abdon Pijpelink <[email protected]>
  • Loading branch information
kibanamachine and abdonpijpelink authored Nov 15, 2023
1 parent 377e0ec commit ce6db06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ Rounds down a date to the closest interval.
\`\`\`
FROM employees
| EVAL year_hired = DATE_TRUNC(hire_date, 1 year)
| EVAL year_hired = DATE_TRUNC(1 year, hire_date)
| STATS count(emp_no) BY year_hired
| SORT year_hired
\`\`\`
Expand Down

0 comments on commit ce6db06

Please sign in to comment.