OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Multiple primary key constraint on a table

Open khoaihps opened this issue 8 months ago • 0 comments

Affected module Does it impact the UI, backend or Ingestion Framework? Backend

Describe the bug

We can add Primary key constraint to multiple columns on UI

Image

However, the same thing cannot be done via API

Image

To Reproduce

PUT /v1/tables with "constraint": "PRIMARY_KEY" on 2 different columns.

Expected behavior API should be success to enable multiple primary keys update. I suggest remove "Multiple columns tagged with primary key constraints" check

Version:

  • OpenMetadata version: 1.11.6

khoaihps avatar Mar 09 '26 04:03 khoaihps