KQL Support

Đang mở
#6,486 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
backend-api-design, search

Hướng nghiên cứu

Issue này nêu tên các search endpoint hiện có, một endpoint /kql có thể có, và việc thực thi truy vấn cùng aggregation nội bộ của Quickwit, nhưng không nêu tệp hay test nào. Hãy bắt đầu bằng cách lần theo đường đi của search request hiện có và phần hỗ trợ aggregation; công việc được xem là hoàn tất khi một tập con KQL được xác định có thể dịch đúng và các toán tử không được hỗ trợ trả về lỗi rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
11.8k
Fork
628
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quickwit-oss/quickwit

Tất cả issue của quickwit-oss/quickwit

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.