cockroachdb / cockroachdb/cockroach
sql: typechecking values clauses with tuples containing nulls is inconsistent with Postgres
オープン
A-sql-pgcompat
A-sql-typing
C-bug
T-sql-queries
- 主要言語
- Go
- スター
- 32.5k
- フォーク
- 4.1k
- PR マージ指標
- PR 指標を取得中
説明
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
コントリビューションガイド
評価
この issue はまだ評価されていません。