[bug] planning on duckdb attached to postgres results in wrong drop statement

Đang mở
#5,677 3 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ó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
postgresql, python

Hướng nghiên cứu

Start by tracing the planning path for models on DuckDB attached to PostgreSQL and find where the generated DROP statement is chosen. The error shows it tries to drop a view using DROP TABLE; inspect the related tests and add coverage for this attached-database case. Done means planning removes or handles the view without raising this error.

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

Mô tả

Bug Engine: DuckDB

during planning

Failed models


  "...."."telemetry_data_sqlmesh"."corrected_tdata"

    Error:
      Failed to execute query "BEGIN TRANSACTION ISOLATION LEVEL REPEATABLE READ;
      DROP Table  IF EXISTS "sqlmesh__telemetry_data_sqlmesh"."telemetry_data_sqlmesh__corrected_tdata__272003323"": ERROR:  "telemetry_data_sqlmesh__corrected_tdata__272003323" is not a table
      HINT:  Use DROP VIEW to remove a view.

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.