Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[PPL] timewrap: support series=exact with time_format for period column naming

Aperta
#5,606 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Parti da TimewrapPivot.renameTimewrapPeriod e segui il modo in cui il campo nullable timeFormat arriva alla denominazione delle colonne dei periodi. Verifica che il percorso series=exact formatti la data di inizio di ogni periodo, incluso il valore predefinito quando time_format è assente, e conferma che non produca più nomi brevi s.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement PPL
Is your feature request related to a problem?

Follow-up from #5241.

The timewrap command supports a series option that controls how the wrapped period columns are named. Currently series=short and series=exact behave identically — both fall back to the short s<N> naming (e.g. s0, s1, ...). The series=exact mode is intended to format the period start date using the time_format option, but this is not yet implemented.

See TimewrapPivot.renameTimewrapPeriod:

return switch (mode) {
  // series=exact (+ time_format) is not yet implemented; it intentionally falls back to the
  // short "s<N>" naming. TODO: format the period start date with time_format.
  case "short", "exact" -> "s" + absolutePeriod;
  ...
};
What solution would you like?

Implement series=exact: format each wrapped period's start date with the time_format option (defaulting to a sensible format when not provided) and use that as the column name, instead of falling back to s<N>.

What alternatives have you considered?

Leaving series=exact aliased to series=short (current behavior), which is a silent no-op and surprising to users who set the option.

Additional context

The timeFormat field is already threaded through TimewrapPivot (nullable) but is currently unused for naming.

Lingua principale
Java
Stelle
175
Fork
233
Merge medio
2g 16h
PR unite (30g)
39

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opensearch-project/sql

Tutte le issue di opensearch-project/sql

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.