cockroachdb / cockroachdb/cockroach

sql: typechecking values clauses with tuples containing nulls is inconsistent with Postgres

Aperta
#93,349 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
A-sql-pgcompat A-sql-typing C-bug T-sql-queries
Lingua principale
Go
Stelle
32.5k
Fork
4.1k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

The following expression fails to typecheck in CockroachDB, but succeeds in Postgres:

`VALUES((1, 2)), ((1, NULL))`

CockroachDB:
```
demo@127.0.0.1:26257/defaultdb> values((1, 2)), ((1, null));

ERROR: VALUES types tuple{int, unknown} and tuple{int, int} cannot be matched
SQLSTATE: 42804
```

Postgres:
```
jordan=> values((1, 2)), ((1, null));
column1
---------
(1,2)
(1,)
(2 rows)
```

Jira issue: CRDB-22279

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.