Skip to content

Commit

Permalink
ESQL - docs for to_date_nanos (elastic#120124)
Browse files Browse the repository at this point in the history
I forgot to link the ToDateNanos docs when I merged that function.
---------

Co-authored-by: elasticsearchmachine <[email protected]>
  • Loading branch information
not-napoleon and elasticsearchmachine authored Jan 14, 2025
1 parent 77392c3 commit 2482f06
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/esql/functions/kibana/docs/to_date_nanos.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions docs/reference/esql/functions/layout/to_date_nanos.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* <<esql-to_cartesianshape>>
* experimental:[] <<esql-to_dateperiod>>
* <<esql-to_datetime>>
* <<esql-to_date_nanos>>
* <<esql-to_degrees>>
* <<esql-to_double>>
* <<esql-to_geopoint>>
Expand All @@ -37,6 +38,7 @@ include::layout/to_cartesianpoint.asciidoc[]
include::layout/to_cartesianshape.asciidoc[]
include::layout/to_dateperiod.asciidoc[]
include::layout/to_datetime.asciidoc[]
include::layout/to_date_nanos.asciidoc[]
include::layout/to_degrees.asciidoc[]
include::layout/to_double.asciidoc[]
include::layout/to_geopoint.asciidoc[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public class ToDateNanos extends AbstractConvertFunction {
@FunctionInfo(
returnType = "date_nanos",
description = "Converts an input to a nanosecond-resolution date value (aka date_nanos).",
note = "The range for date nanos is 1970-01-01T00:00:00.000000000Z to 2262-04-11T23:47:16.854775807Z. Additionally, integers "
+ "cannot be converted into date nanos, as the range of integer nanoseconds only covers about 2 seconds after epoch.",
preview = true
note = "The range for date nanos is 1970-01-01T00:00:00.000000000Z to 2262-04-11T23:47:16.854775807Z, attepting to convert"
+ "values outside of that range will result in null with a warning.. Additionally, integers cannot be converted into date "
+ "nanos, as the range of integer nanoseconds only covers about 2 seconds after epoch."
)
public ToDateNanos(
Source source,
Expand Down

0 comments on commit 2482f06

Please sign in to comment.