OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Cluster Key Table Constraint not visible in UI

Open ulixius9 opened this issue 7 months ago • 7 comments

Affected module UI

Describe the bug

Image Image

Table Payload

{
    "id": "a0f04705-0eb8-496a-8cf0-c3ad09c2439b",
    "name": "test_mview_case_v2",
    "fullyQualifiedName": "local_bigquery1.my_bq_project.mayur_test.test_mview_case_v2",
    "version": 0.1,
    "updatedAt": 1775819194270,
    "updatedBy": "admin",
    "href": "http://host.docker.internal:8585/api/v1/tables/a0f04705-0eb8-496a-8cf0-c3ad09c2439b",
    "tableType": "MaterializedView",
    "columns": [
        {
            "name": "Entity_ID",
            "dataType": "INT",
            "dataLength": 1,
            "dataTypeDisplay": "integer",
            "fullyQualifiedName": "local_bigquery1.my_bq_project.mayur_test.test_mview_case_v2.Entity_ID",
            "tags": [],
            "constraint": "NULL",
            "children": []
        },
        {
            "name": "Entity_Type",
            "dataType": "INT",
            "dataLength": 1,
            "dataTypeDisplay": "integer",
            "fullyQualifiedName": "local_bigquery1.my_bq_project.mayur_test.test_mview_case_v2.Entity_Type",
            "tags": [],
            "constraint": "NULL",
            "children": []
        }
    ],
    "tableConstraints": [
        {
            "constraintType": "CLUSTER_KEY",
            "columns": [
                "Entity_ID",
                "Entity_Type"
            ]
        }
    ],
    "owners": [],
    "databaseSchema": {
        "id": "b661bfe7-ac58-43a2-a9e4-5673c2bdc8b7",
        "type": "databaseSchema",
        "name": "mayur_test",
        "fullyQualifiedName": "local_bigquery1.my_bq_project.mayur_test",
        "description": "",
        "displayName": "mayur_test",
        "deleted": false,
        "href": "http://host.docker.internal:8585/api/v1/databaseSchemas/b661bfe7-ac58-43a2-a9e4-5673c2bdc8b7"
    },
    "database": {
        "id": "58c6fc62-f404-45ad-82e0-1e42c66aa482",
        "type": "database",
        "name": "my_bq_project",
        "fullyQualifiedName": "local_bigquery1.my_bq_project",
        "displayName": "my_bq_project",
        "deleted": false,
        "href": "http://host.docker.internal:8585/api/v1/databases/58c6fc62-f404-45ad-82e0-1e42c66aa482"
    },
    "service": {
        "id": "8659df62-a43f-4545-b64b-e5519339e159",
        "type": "databaseService",
        "name": "local_bigquery1",
        "fullyQualifiedName": "local_bigquery1",
        "displayName": "local_bigquery1",
        "deleted": false,
        "href": "http://host.docker.internal:8585/api/v1/services/databaseServices/8659df62-a43f-4545-b64b-e5519339e159"
    },
    "serviceType": "BigQuery",
    "schemaDefinition": "CREATE MATERIALIZED VIEW mayur_test.test_mview_case_v2 AS SELECT\n    Entity_ID as Entity_ID,\n    Entity_Type as Entity_Type\n  FROM `my_bq_project.mayur_test.source_case_test`",
    "tags": [],
    "usageSummary": {
        "dailyStats": {
            "count": 0,
            "percentileRank": 0
        },
        "weeklyStats": {
            "count": 0,
            "percentileRank": 0
        },
        "monthlyStats": {
            "count": 0,
            "percentileRank": 0
        },
        "date": "2026-04-10"
    },
    "followers": [],
    "joins": {
        "startDate": "2026-03-11",
        "dayCount": 30,
        "columnJoins": [],
        "directTableJoins": []
    },
    "incrementalChangeDescription": {
        "fieldsAdded": [],
        "fieldsUpdated": [],
        "fieldsDeleted": [],
        "previousVersion": 0.1
    },
    "deleted": false,
    "sourceUrl": "https://console.cloud.google.com/bigquery?project=my_bq_project&ws=!1m5!1m4!4m3!1smy_bq_project!2smayur_test!3stest_mview_case_v2",
    "domains": [],
    "dataProducts": [],
    "votes": {
        "upVotes": 0,
        "downVotes": 0,
        "upVoters": [],
        "downVoters": []
    },
    "lifeCycle": {
        "created": {
            "timestamp": 1775819083216
        }
    },
    "sourceHash": "2b127837266d941dfeb08cfa13c10cb5",
    "processedLineage": false,
    "entityStatus": "Unprocessed"
}

ulixius9 avatar Apr 10 '26 11:04 ulixius9

Hi @ulixius9, I would love to work on this. Could you plz assign this to me?

hassaansaleem28 avatar Apr 10 '26 11:04 hassaansaleem28

Hi, @ulixius9 could you assign me this issue .

shnaiiider avatar Apr 11 '26 17:04 shnaiiider

Hi @shnaiiider, I appreciate your interest. But am currently working on it and will open a PR shortly. Please Look for another one. Thanks!

Hi, @ulixius9 could you assign me this issue .

hassaansaleem28 avatar Apr 11 '26 17:04 hassaansaleem28

Hi @ulixius9 , I’d really love to work on this task. Could you please assign it to me?

Yashsainani123 avatar Apr 11 '26 18:04 Yashsainani123

Hi @ulixius9 could you plz assign me this issue, I reviewed this issue and would like to give a small summary of Changes based on my analysis which need to be done, here is it-

In the ConstraintIcon.tsx | Add ClusterKey → IconCluster mapping Same as TableConstraints.tsx | Include ClusterKey in non-FK constraint render filter also in Table.constants.ts | Add Cluster Key option to modal dropdown In the TableConstraintsModal.component.tsx | Load/save ClusterKey, remove eager suggestions fetch Same as icon-cluster.svg (new) | SVG asset for the cluster key icon

Ashwin445160 avatar Apr 12 '26 14:04 Ashwin445160

hey i love to work on this bug, can u plz assingn me

xlordx-bit avatar Apr 13 '26 15:04 xlordx-bit

Hi! @ulixius9 I'd like to work on this issue for the Back to the Metadata hackathon. Is it still available? I'll start on it today

gowthamchoudhary avatar Apr 14 '26 10:04 gowthamchoudhary