Aggregation failing after index schema update

未关闭
#6,130 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust
领域
backend, databases

调研方向

通过创建一个包含非快速 test 字段的索引、摄取数据、启用快速字段、摄取更多数据并运行聚合来重现该问题。跟踪旧 split 和新 split 上的 schema 更新、数据摄取和聚合;完成标准是聚合成功,同时将旧 split 视为缺失数据。

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug
We have had an index on which we defined a text field change with fast: false , this index already has data. We could not perform aggregation queries on it. When we attempted aggregation queries on it we got this error:

{ ERROR quickwit_search::error: search internal error: search failed for the following splits:  x, y, z,  . For instance, split x failed with the following error message: internal error: `An invalid argument was passed: 'Field \"change\" is not configured as fast field'`"}

We have now updated the schema to set fast: true so we could perform aggregation even if old split will be considered as missing data. however we still the same error after changing the schema and ingesting new data.

{ ERROR quickwit_search::error: search internal error: search failed for the following splits:  x, y, z,  . For instance, split x failed with the following error message: internal error: `An invalid argument was passed: 'Field \"change\" is not configured as fast field'`"}

Steps to reproduce (if applicable)
Steps to reproduce the behavior:

  1. create an index with a field test that's is not fast-field
  2. ingest some data
  3. change the schema to make the field test fast-fields
  4. ingest more data
  5. attempt to make aggregation query on the field test
  6. You should be able to observe the reported error

Expected behaviour
We expected after the schema update, that aggregation queries on change field should work although it will not take into account old split on which fast-field was not enabled on the change field.

主要语言
Rust
星标
11.8k
派生
628
平均合并
2 天 22 小时
30 天内合并 PR
50

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quickwit-oss/quickwit 的其他 Issue

查看 quickwit-oss/quickwit 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。