opensearch-project / opensearch-project/sql

[RFC] Timestamp should contain timezone information

Open
#3,893 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem Statement

timestamp should contain timezone information

Current State

Currently timestamp format YYYY-MM-DD HH:MM:SS does not provide timezone information

{
  "schema": [
    {
      "name": "timestamp",
      "type": "timestamp"
    },
    {
      "name": "utc_time",
      "type": "timestamp"
    }
  ],
  "datarows": [
    [
      "2025-07-08 07:04:39.864",
      "2025-07-08 07:04:39.864"
    ],
    [
      "2025-07-08 07:07:44.718",
      "2025-07-08 07:07:44.718"
    ],
    ...
  ]
}

Proposal
timestamp format be ISO 8601 or other date format that include timezone information

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

The issue names no files, tests, or entry points; begin by locating where SQL/PPL result timestamps are formatted. Done means agreeing on and implementing a timezone-bearing timestamp format, with tests covering the returned values.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.