[META] Mapping conflicts when a field has different types across the indices of one wildcard
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 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 小时
- 30 天内合并 PR
- 34
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 一周以上 新手友好度 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 ·