[FEATURE] Index pruning skips index expressions that resolve to a data stream
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 54/100
調査の方向性
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 の本文から書いたものです。
説明
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
opensearch-project/sql のほかの issue
-
[Enhancement] Make the flat_object read depth cap configurable instead of a constant対応中かも @RyanL1997 が 11 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opensearch-project/sql#5842 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] PromQL queries fail with InvalidTypeIdException when metric has a label named "type"対応中かも @nagendramohan が 74 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
opensearch-project/sql#5684 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[DOC] Calcite settings documentation missing examples対応中かも @AzazelSensei が 31 日前に担当しました。 オープンdocumentation PPL
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
opensearch-project/sql#4806 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug PPL untriaged
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
opensearch-project/sql#5904 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] stats max and min return the same value on a text field without a keyword subfield対応中かも @cnoramut が今日担当しました。 オープンbug PPL
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
opensearch-project/sql#5900 ·
メンテナーはふだん 1 日以内に返信
opensearch-project/sql の issue をすべて見る
似ている issue
-
code-maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
bug priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
carlos-emr/carlos#5258 ·
メンテナーはふだん 1 日以内に返信
-
bug: author create/update with an unknown avatarId returns 404 instead of 400 UNKNOWN_REFERENCE対応中かも @Vinu2111 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
atomityhq/blog-cms#59 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's Maven対応中かも @kou が今日担当しました。 オープンType: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/arrow-adbc#4947 ·
メンテナーはふだん 1 日以内に返信