Skip to content

Parse now and duration in start and end time#494

Merged
nitisht merged 1 commit into
parseablehq:mainfrom
trueleo:now_query
Sep 13, 2023
Merged

Parse now and duration in start and end time#494
nitisht merged 1 commit into
parseablehq:mainfrom
trueleo:now_query

Conversation

@trueleo
Copy link
Copy Markdown
Contributor

@trueleo trueleo commented Sep 12, 2023

Fixes #490 .

Description

Allow user to specify now and duration in endTime and startTime fields instead of giving concrete timestamps.

Note that this only affects the timerange for internal file lookups and does not guarantee restriction exact timeframe for p_timestamp for the query. In that case user is expected to pass in where p_timestamp < now() and p_timestamp > (now() - interval '10 minute')


This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

@nitisht nitisht merged commit ee508cf into parseablehq:main Sep 13, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 13, 2023
@trueleo trueleo deleted the now_query branch September 18, 2023 04:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for relative datetime in query

2 participants