[Trino] Split long-format results into one series per label

Đang mở
#936 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

@dougkirkley đang làm issue này rồi.

Từ ngày 16/11/2026.

  • #941 của @dougkirkley — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
data-visualization

Hướng nghiên cứu

Read the Trino time-series query handling changed in the review of #931 and follow-up pull request #941. Check how it currently converts numeric columns into series, then determine how label values should group rows and appear as series names and labels. Done when each distinct label combination produces its own series and results without label columns retain current behavior.

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

Mô tả

enhancement

Follow-up from the review of #931.

The Trino time-series query turns each numeric column into one series ("wide" format). A result in "long" format, with one row per timestamp and label value, for example:

SELECT date_trunc('minute', ts) AS time, host, avg(cpu) AS value
FROM metrics GROUP BY 1, 2

becomes a single value series mixing every host, instead of one series per host.

Proposal: treat non-time, non-numeric columns as labels, and group rows by their label values into separate series, each named from its labels and carrying them as series labels. Results with no label columns keep today's behaviour.

Ngôn ngữ chính
TypeScript
Star
33
Fork
95
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
40

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 perses/plugins

Tất cả issue của perses/plugins

Issue tương tự

Thêm issue về TypeScript

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.