Skip to content

Commit 2704341

Browse files
committed
Update docs
1 parent eb77d06 commit 2704341

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

docs/reference/esql/functions/description/date_trunc.asciidoc

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/examples/bucket.asciidoc

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/date_trunc.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/date_trunc.md

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Bucket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ another in which the bucket size is provided directly (two parameters).
135135
If the desired bucket size is known in advance, simply provide it as the second
136136
argument, leaving the range out:""", file = "bucket", tag = "docsBucketWeeklyHistogramWithSpan", explanation = """
137137
NOTE: When providing the bucket size as the second parameter, it must be a time
138-
duration or date period."""),
138+
duration or date period. Also the reference is epoch, which starts at `0001-01-01T00:00:00Z`."""),
139139
@Example(
140140
description = "`BUCKET` can also operate on numeric fields. For example, to create a salary histogram:",
141141
file = "bucket",

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateTrunc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public interface DateTruncFactoryProvider {
6363

6464
@FunctionInfo(
6565
returnType = { "date", "date_nanos" },
66-
description = "Rounds down a date to the closest interval.",
66+
description = "Rounds down a date to the closest interval since epoch, which starts at `0001-01-01T00:00:00Z`.",
6767
examples = {
6868
@Example(file = "date", tag = "docsDateTrunc"),
6969
@Example(

0 commit comments

Comments
 (0)