-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add ESQL DAY_NAME
function
#132535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ESQL DAY_NAME
function
#132535
Conversation
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DayName.java
Show resolved
Hide resolved
Pinging @elastic/es-analytical-engine (Team:Analytics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. You need to make a change to the docs generation and rerun the test for it to slurp the docs change into the generated docs. But otherwise I think it's read.
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
Outdated
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DayName.java
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DayName.java
Show resolved
Hide resolved
ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied Changes @nik9000
Relates to #98545
Introduces
DAY_NAME
function, similar to MySQL behaviour.Given a
date
ordate_nanos
return the weekday name for the specified day based on the configured Locale