Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[FEATURE] Index pruning skips index expressions that resolve to a data stream

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

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

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

評価

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

調査の方向性

Start by reading IndexPruner.isPrunable and the code that expands data stream expressions and runs the _field_caps and index_filter probe. Check how filtered aliases retain their filter and routing when expressions are expanded. Done means pruning selects relevant backing indices for data stream queries while preserving the existing filtered alias exclusion and query results.

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

説明

enhancement untriaged

Is your feature request related to a problem?
IndexPruner.isPrunable declines any wildcard expression that resolves to a data stream (!expression.hasDataStream()), so on clusters where log data lives in data streams, index pruning never applies. A query like source=logs-* | where @timestamp >= now-1m | stats values(f) by g still reads every backing index, including rolled-over generations whose data is far outside the time range.

Local reproduction (40 data streams x 10 generations x 2 shards, pruning enabled, 60-minute window): source=logs-* reads all 800 shards and logs Index pruning skipped: wildcard=true, alias=false, dataStream=true. source=.ds-logs-*, which targets the same backing indices directly, is pruned to the 80 shards of the newest generation, with identical results.

What solution would you like?
Prune data-stream expressions by expanding them to their backing indices and applying the same _field_caps + index_filter probe. The documented reason for the exclusion is filtered aliases, whose filter and routing would be silently dropped by substituting concrete indices. Data streams carry no alias filter, so the exclusion may be relaxable for them, while filtered aliases stay excluded.

What alternatives have you considered?
Querying backing indices directly (source=.ds-logs-*, plus any plain indices listed by name) gets pruning today, but users shouldn't need to know data-stream internals.

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

環境構築

はじめの一歩

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

opensearch-project/sql のほかの issue

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

似ている issue

Java の issue をもっと見る

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

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