Skip to content

feat: Add support for epoch_millis and epoch_second time formats#71

Merged
Darkheir merged 1 commit into
sekoiafrom
feat/epoch_time_format
Jun 25, 2026
Merged

feat: Add support for epoch_millis and epoch_second time formats#71
Darkheir merged 1 commit into
sekoiafrom
feat/epoch_time_format

Conversation

@Darkheir

Copy link
Copy Markdown
Collaborator

Description

Describe the proposed changes made in this PR.

How was this PR tested?

Describe how you tested this PR.

Copilot AI review requested due to automatic review settings June 25, 2026 09:17
@Darkheir Darkheir requested a review from rdettai-sk June 25, 2026 09:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the Elasticsearch range query DSL handling in quickwit-query to properly support format: "epoch_millis" and format: "epoch_second" by converting epoch bounds into RFC3339 strings before building the RangeQuery AST.

Changes:

  • Add explicit handling for epoch_millis and epoch_second formats in range queries.
  • Introduce an epoch conversion helper that accepts numeric and numeric-string bounds and formats them as RFC3339.
  • Add unit tests covering both epoch formats.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rdettai-sk rdettai-sk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

actually, the right fix would be to forward the timestamp as is when format = epoch_xxx

@Darkheir Darkheir force-pushed the feat/epoch_time_format branch 2 times, most recently from baaf486 to 62d4507 Compare June 25, 2026 09:48
Signed-off-by: Darkheir <raphael.cohen@sekoia.io>
@Darkheir Darkheir force-pushed the feat/epoch_time_format branch from 62d4507 to 19d36e7 Compare June 25, 2026 09:48
@Darkheir Darkheir requested a review from rdettai-sk June 25, 2026 09:49
@Darkheir

Copy link
Copy Markdown
Collaborator Author

actually, the right fix would be to forward the timestamp as is when format = epoch_xxx

Done

@Darkheir Darkheir merged commit a3ddb7d into sekoia Jun 25, 2026
3 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.

3 participants