Skip to content

sql: "default" DCollatedString should be DString objects #57255

Open
@otan

Description

@otan

In Postgres, COLLATE strings are just a typmod on the string type.
In CRDB, COLLATE is an entirely new type, with its own family and handling logic.

Unfortunately, this presents a problem when using "default" collation, which should store no typmod for the string object for collate. We however have pidgeonholed all our logic such that x COLLATE y forms a CollatedString type.

This is problematic for DEFAULT collations when a user specifies it, as it tries to evaluate the language tag. Since we introduced DEFAULT column definitions in #56598, this is only a problem when someone does x COLLATE "default" as a value.

Jira issue: CRDB-2845

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-datatypesSQL column types usable in table descriptors.A-sql-pgcompatSemantic compatibility with PostgreSQLC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)X-anchored-telemetryThe issue number is anchored by telemetry references.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions