Skip to content

[Backport 2.x] Add TIME_FORMAT() Function To SQL Plugin #1346

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

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

opensearch-trigger-bot[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