Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Data generation fails due to invalid records in ColdRoomTemperatures

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

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

Đá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
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
sql
Lĩnh vực
databases

Hướng nghiên cứu

Bắt đầu với thủ tục DataLoadSimulation.PopulateDataToCurrentDate và bảng lịch sử Warehouse.ColdRoomTemperatures_Archive được mô tả trong báo cáo. Tái hiện lệnh gọi được lập lịch, kiểm tra cách các bản ghi có khoảng thời gian không hợp lệ được tạo ra và xác minh rằng lệnh gọi hoàn tất mà không yêu cầu xóa thủ công các hàng hoặc đặt lại các bảng temporal.

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

Mô tả

I have schedule the data generator to run daily so I can have good demo data for our developers. It occasionally fails with the following error message which requires me to manually delete the invalid rows and reset all the temporal tables.

[SQLSTATE 01000] (Message 0) Setting SYSTEM_VERSIONING to ON failed because history table 'WideWorldImporters.Warehouse.ColdRoomTemperatures_Archive' contains invalid records with end of period set before start.

Here is the stored procedure call that I am using:

EXECUTE DataLoadSimulation.PopulateDataToCurrentDate @AverageNumberOfCustomerOrdersPerDay = 60,
                                                     @SaturdayPercentageOfNormalWorkDay = 50,
                                                     @SundayPercentageOfNormalWorkDay = 0,
                                                     @IsSilentMode = 1,
                                                     @AreDatesPrinted = 1;

I'll dig into the generation code and see if I can fix it since no one appears to be maintaining this project.

Ngôn ngữ chính
PowerShell
Star
11.2k
Fork
9.1k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
14

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 microsoft/sql-server-samples

Tất cả issue của microsoft/sql-server-samples

Issue tương tự

Thêm issue về Databases

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.