Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport bae0f6b from #1301

Adds the time_format function to the SQL plugin. The function takes a DATE/DATETIME/TIME/TIMESTAMP/STRING in a valid format, and a formatting string (e.g., "%h %p") and outputs a formatted string. If a DATE is passed in, it treats the argument as if it is taken at midnight (i.e., 00:00:00).

Signed-off-by: GabeFernandez310 <[email protected]>
(cherry picked from commit bae0f6b)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner February 15, 2023 18:14
@dai-chen dai-chen added the enhancement New feature or request label Feb 16, 2023
@dai-chen dai-chen merged commit 46026af into 2.x Feb 16, 2023
@github-actions github-actions bot deleted the backport/backport-1301-to-2.x branch February 16, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants