Aliases on relations

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

Maintainer thường phản hồi trong vòng 5 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
Đình trệ
Công nghệ
rust
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Read the discussion linked from the issue, especially the comment on PR #4750, and review the examples in the issue to understand how aliases affect relational variables across pipeline steps. The issue proposes removing relational aliases but does not settle the design or specify implementation files or tests; first determine whether the project has reached a decision. Done would mean implementing an agreed direction and updating relevant tests.

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

Mô tả

language-design

@snth recently expressed an opinion that relation aliases in PRQL are mistake and should be removed

By relational aliases we mean the name x in following queries:

from x = employees

...

join x = managers

Currently, relational aliases have effect of assigning a name to a relational variable within the query:

from x = employees
select {x.name}

@snth argues that relational aliases are a carryover from SQL and should be removed from PRQL because
a) it is not a fundamental part of Relational Algebra, and
b) breaks the local nature of PRQL transforms and puts in global dependencies between different pipeline steps.

Ngôn ngữ chính
Rust
Star
10.9k
Fork
261
Merge trung bình
4 ngày 7 giờ
Pull request đã merge (30 ngày)
77

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 PRQL/prql

Tất cả issue của PRQL/prql

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.