[jdbc-v2] Metadata - getPrimaryKeys

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

Hướng nghiên cứu

Start by locating the JDBC v2 metadata implementation for getPrimaryKeys and how it reads system.tables.primary_key; the issue does not name a source file or test. Reproduce the behavior with a table whose sort key contains repeated values, then inspect the existing metadata tests. Done means getPrimaryKeys no longer reports a non-unique sort key as a primary key in the described cases, with a regression test covering repeated values.

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

Mô tả

area:jdbc-metadata jdbc-v2
Description

getPrimaryKeys returns the table’s system.tables.primary_key (the sort key) as a primary key even when values repeat.
Longer term the driver probably shouldn’t report a non-unique sort key as a primary key.

The problem is that in some cases it is not expected to have non-unique values from this method .

Ngôn ngữ chính
Java
Star
1.6k
Fork
649
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
39

Chuẩn bị môi trường

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 ClickHouse/clickhouse-java

Tất cả issue của ClickHouse/clickhouse-java

Issue tương tự

Thêm issue về Java

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.