[jdbc-v2] Metadata - getPrimaryKeys

Aperta
#3,263 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 .

Lingua principale
Java
Stelle
1.6k
Fork
649
Merge medio
1g 20h
PR unite (30g)
39

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ClickHouse/clickhouse-java

Tutte le issue di ClickHouse/clickhouse-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.