MSSQL: Clarify Synapse final-column trailing-comma support

Đang mở
#2,605 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

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
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, rust, sql
Lĩnh vực
databases, devtools

Hướng nghiên cứu

Check the referenced Azure Synapse CREATE TABLE documentation and the MsSqlDialect handling of CREATE TABLE syntax first; compare the requested final-column case with related generic trailing-comma support in #1212. Done means the scope is confirmed for Synapse serverless temporary tables, while existing ParserOptions behavior and rejection of malformed or unrelated trailing arguments remain preserved.

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

Mô tả

SQL Server

MSSQL: Clarify Synapse final-column trailing-comma support

Should MsSqlDialect have a narrowly scoped capability for a final comma after a complete CREATE TABLE column definition?

Synthetic reproducer:

CREATE TABLE #example (
    id INT,
    label VARCHAR(32),
);

The default MSSQL parser rejects this. The proposed scope is Azure Synapse serverless SQL pool temporary tables, not every SQL Server variant.
I have not independently executed this reproducer against that service. The documented CREATE TABLE grammar does not clearly establish this allowance, so I am requesting scope confirmation before proposing a default dialect change.

Reference: https://learn.microsoft.com/en-us/sql/t-sql/statements/create-table-transact-sql?view=azure-sqldw-latest

If supported, the capability should apply only after a complete final column definition, without enabling global trailing commas, malformed/doubled commas, or trailing function arguments. Existing explicit ParserOptions behavior should remain unchanged.
Related generic trailing-comma support exists in #1212; this question concerns a narrow default capability and engine scope.

Prepared with GitHub Copilot assistance. All material above is synthetic.

Ngôn ngữ chính
Rust
Star
3.5k
Fork
805
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
116

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 apache/datafusion-sqlparser-rs

Tất cả issue của apache/datafusion-sqlparser-rs

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.