cockroachdb / cockroachdb/cockroach

sql: type string literals as `unknown` initially

Open
#94,718 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In Postgres, string literals (e.g., in `SELECT 'foo'`) are typed as `unknown` initially. It's type is then resolved later on based on type conversion rules of function calls, operators, and other constructs.

More information on string literal typing in Postgres can be found in the docs: https://www.postgresql.org/docs/current/typeconv-overview.html

Epic CRDB-2474

Jira issue: CRDB-23099

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.