opensearch-project / opensearch-project/sql

[FEATURE] Unify the logic to lookup default time field

Open
#4,275 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

calcite maintenance PPL
Dominant language
Java
Stars
176
Forks
229
Avg merge
2d 21h
Merged PRs (30d)
43

Description

Several PPL functions utilize default timestamp field @timestamp, but those are identified by separate logic.
We should refactor and unify the logic for better maintainability.

https://github.com/opensearch-project/sql/pull/4212
https://github.com/opensearch-project/sql/pull/4138

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading PRs 4212 and 4138, then trace the separate logic used by PPL functions to identify the default @timestamp field. Done means those lookups share one maintainable implementation without changing the affected functions' behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.