[META] Mapping conflicts when a field has different types across the indices of one wildcard
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- sql
- 領域
- databases, testing-qa
調査の方向性
Start by reading the conflict cases in #5752, #5828, #5790, #5811, and #5825, then review the matrix coverage described here and the proposed integration tests in #5754. Compare the remaining command and field-type combinations with #5806; the issue is complete only when the intended handling of conflicting mappings and the affected test coverage are defined.
索引モデルが issue の本文から書いたものです。
説明
Problem. A PPL query over a wildcard or rollover pattern such as source=logs-* merges the mappings of every index it matches. When one field has a different type in one of those indices, the merge picks a single type. On a multi-node cluster the pick can change between consecutive requests, see #5752. Depending on the type picked and the command, the same query then returns a 500, a 400, or HTTP 200 with changed or empty values. A rollover that creates a new index with one drifted field is enough to trigger it.
Policy. #5610 proposes how a query should handle these conflicts, with fail-fast, coercion, null on mismatch and dropping the row as candidate modes.
Coverage so far.
- 23 types:
keyword,text,textwith akeywordsubfield,match_only_text,long,integer,short,byte,double,float,half_float,scaled_float,boolean,date,date_nanos,ip,binary,geo_point,object,nested, analiasof along,flat_objectandconstant_keyword. Each type runs on its own index, and each pair of them, plus the field missing from one index, runs through one wildcard. - 75 query templates over 41 of the 45 commands in the 3.5 PPL command list, run on
main.- Excluding
ml,kmeansandad, which need a modelshow datasources, which reads no index.
- Excluding
- Not covered yet: the 9 commands added since 3.5,
convert,foreach,graphlookup,makeresults,mvexpand,nomv,rest,unionandxyseries.
Caused by the conflict
- HTTP 200 with wrong or empty values
- #5752
- #5828
- HTTP 500, where the issue expects a result or a 400 naming the conflicting types
- #5790
- #5811
- #5825
- #5835
- #5897
Found during the conflict tests, but reproduce on a single index
- HTTP 500 instead of a result
- #5873
chartover anestedfield, to be filed
- HTTP 500 instead of HTTP 400
- #5750
- #5836
- #5856
- #5857
- #5885
- #5886
- #5887
- #5898
- #5899
- #5900
- Requests the engine correctly rejects come back as 500, such as
binwithbinson a timestamp outside an aggregation, to be filed
Related.
- #5754 proposes integration tests over the command and data-type matrix, which would cover these cases.
- #5806 tracks the test coverage for data streams and schema evolution, whose acceptance criteria rule out these 500s.
- 主要言語
- Java
- スター
- 176
- フォーク
- 237
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
opensearch-project/sql のほかの issue
-
bug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opensearch-project/sql#5990 ·
メンテナーはふだん 1 日以内に返信
-
bug untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
opensearch-project/sql#5983 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] PromQL queries fail with InvalidTypeIdException when metric has a label named "type"対応中かも @nagendramohan が 107 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
opensearch-project/sql#5684 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[DOC] Calcite settings documentation missing examples対応中かも @AzazelSensei が 64 日前に担当しました。 オープンdocumentation PPL
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
opensearch-project/sql#4806 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
calcite enhancement Meta performance PPL untriaged
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
opensearch-project/sql#5991 ·
メンテナーはふだん 1 日以内に返信
opensearch-project/sql の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
PCL-Community/PCL-CE#3907 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 2 日以内に返信
-
area/dependencies area/dependencies/quarkus backport/26.6 backport/26.8 kind/cve severity/critical source/scan-dependencies status/triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
docker-to-squash.py: check_dependencies should find mksquashfs on PATH対応中かも @linzch3 が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
chore
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
lugassawan/swe-workbench#841 ·