cockroachdb / cockroachdb/cockroach

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

オープン
#93,349 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。