Evaluate Snowflake INSERT OVERWRITE … DELETING WHERE support

Đang mở
#6,296 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 4 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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, sql

Hướng nghiên cứu

Start by tracing the Snowflake overwrite path and its callers, then compare source filtering, interval boundaries, empty results, multiple batches, and target reads. Check SQLGlot support, shared adapter behavior, supported table types, fallback or configuration needs, and relevant integration tests. Benchmark the existing transactional strategy against INSERT OVERWRITE … DELETING WHERE for scanning, locking, concurrency, and failures before recommending adoption, deferral, or no change.

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

Mô tả

Snowflake introduced INSERT OVERWRITE … DELETING WHERE on November 20, 2026. I'd like to understand whether it's worth using in SQLMesh's Snowflake adapter before we implement support. Keeping the current behavior may be the right answer.

SQLMesh already uses the shared delete-and-insert strategy for Snowflake time-range overwrites and wraps the operation in a transaction. Combining those statements doesn't by itself tell us whether correctness or performance improves. My concern is that we could add another engine-specific code path without enough benefit to justify maintaining it.

Please investigate:

  • What limitation of the current strategy this addresses, or what measurable benefit users would get. Separate what Snowflake documents from what the code suggests and what you've verified against Snowflake.
  • How the semantics compare. Trace the overwrite path and its callers, including source filtering, interval boundaries, empty results, multiple source batches, and queries that read the target table. Snowflake's deletion predicate doesn't filter inserted rows.
  • How it performs against the current transactional strategy on representative workloads. Consider scanning, locking, concurrent batch evaluation, and failure behavior where relevant. Fewer statements alone aren't evidence of lower cost or faster execution.
  • How it fits the existing overwrite strategies and whether we'd need a new one. Check SQLGlot support, effects on shared adapter behavior, supported table types, compatibility, and any fallback or configuration we'd need.
  • What we'd have to maintain: additional code paths, dependencies, and integration tests. Does the demonstrated benefit justify that work?

Recommend whether to adopt it, defer it, or leave the current behavior in place, with supporting evidence and any open questions. If adoption makes sense, propose the smallest scope that delivers the benefit.

Reference: Snowflake INSERT semantics and limitations.

Ngôn ngữ chính
Python
Star
3.3k
Fork
471
Merge trung bình
6 ngày 7 giờ
Pull request đã merge (30 ngày)
35

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 SQLMesh/sqlmesh

Tất cả issue của SQLMesh/sqlmesh

Issue tương tự

Thêm issue về Python

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.