KQL Support

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
rust

调研方向

该 issue 列出了现有的搜索端点、可能的 /kql 端点,以及 Quickwit 内部的查询和聚合执行,但没有指定任何文件或测试。首先跟踪现有的搜索请求路径和聚合支持;完成的标准是:定义的 KQL 子集能够被正确转换,而不支持的运算符会返回明确的错误。

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

描述

area:query enhancement

My team comes from Azure Data Explorer / Microsoft Sentinel / Log Analytics, where
KQL (Kusto Query Language) is the native query language. Our analysts and SREs think
in KQL's pipe-based flow (source | where ... | summarize ... | project ...), and we
have a large library of saved queries, detections, and dashboards written in it.

Quickwit today exposes its own Lucene-style query mini-language and an
Elasticsearch-compatible DSL. Both are great for full-text filtering, but neither
maps cleanly onto the multi-stage transform-and-aggregate workflow KQL makes natural.
Porting existing KQL assets to Quickwit means rewriting everything by hand, which is a
major blocker to adopting Quickwit as a log/trace backend for teams already fluent in KQL.

Describe the solution you'd like
First-class KQL support, exposed as an additional query language (e.g. a
query_language=kql parameter on the existing search endpoints, or a dedicated
/kql endpoint) that parses KQL and translates it into Quickwit's internal
query + aggregation execution.

A useful initial subset, in rough priority order:

  • Filtering: where, search, time-range predicates
  • Shaping: project, project-away, extend, rename
  • Aggregation: summarize with count(), sum(), avg(), min()/max(),
    dcount(), and bin() for time bucketing — these map onto Quickwit's existing
    metric/bucket aggregations
  • Ordering & limiting: sort/order by, take/limit, top
  • String/scalar functions and case/iff as a later phase

Out-of-scope clauses (join, mv-expand, user-defined functions, etc.) could return
a clear "unsupported operator" error rather than silently misbehaving.

Example translations (KQL on the left, the Quickwit operation it would lower to on the right):

  1. Errors bucketed over time
主要语言
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 摘要。