Skip to content

feat: add support for now() function evaluation and comparison#6529

Merged
dlvenable merged 1 commit intoopensearch-project:mainfrom
LeilaMoussa:now-function
Apr 16, 2026
Merged

feat: add support for now() function evaluation and comparison#6529
dlvenable merged 1 commit intoopensearch-project:mainfrom
LeilaMoussa:now-function

Conversation

@LeilaMoussa
Copy link
Copy Markdown
Contributor

Description

Add support for now() function which returns current time in epoch millis. It can also be used in a relational expression like /my_timestamp < now() - 3 * 24 * 60 * 60 * 1000

I don't quite see support for 3d duration expressions (is it supported?) and did not add that.

If approved, need to add documentation.

Issues Resolved

Resolves #4667

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: LeilaMoussa <leila.farah.moussa@gmail.com>
Copy link
Copy Markdown
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @LeilaMoussa !

@dlvenable dlvenable merged commit b528fa1 into opensearch-project:main Apr 16, 2026
70 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable pipeline to discard data older than XX

3 participants