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

オープン
#5,606 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
java
領域
backend

調査の方向性

TimewrapPivot.renameTimewrapPeriod から開始し、nullable フィールドの timeFormat が期間列の命名にどのように到達するかを追跡してください。series=exact パスが各期間の開始日をフォーマットすることを、time_format が存在しない場合のデフォルトも含めて確認し、短い s 名を生成しなくなったことを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Java
スター
175
フォーク
233
平均マージ
2日 7時間
マージ済み PR(30日)
36

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opensearch-project/sql のほかの issue

opensearch-project/sql の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。