Skip to content

Invalid key error when adding a uk on a table containing duplicate keys #44439

@tangenta

Description

@tangenta

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Add unique index on a table that containing duplicate keys.

2. What did you expect to see? (Required)

Report duplicated entry error.

3. What did you see instead (Required)

ERROR 8221 (HY000): invalid key - "7480000000000000b95f698000000000000001038000000000000001"

4. What is your TiDB version? (Required)

50fb9a7

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.1This bug affects the 7.1.x(LTS) versions.severity/moderatetype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions