diff --git a/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/EntityLink.g4 b/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/EntityLink.g4 index e9b190174d5..a08c9014992 100644 --- a/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/EntityLink.g4 +++ b/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/EntityLink.g4 @@ -47,7 +47,6 @@ ENTITY_TYPE | 'searchService' | 'webhook' | 'mlmodel' - | 'type' | 'team' | 'user' | 'bot' diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/EntityLink.test.ts b/openmetadata-ui/src/main/resources/ui/src/utils/EntityLink.test.ts index e96b47a97e6..e30ed1325da 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/EntityLink.test.ts +++ b/openmetadata-ui/src/main/resources/ui/src/utils/EntityLink.test.ts @@ -130,4 +130,12 @@ describe('Test EntityLink', () => { '<#E::table::sample_data.ecommerce_db.shopify.dim_address::columns::address_id>' ); }); + + it('should return column name if column name is "type"', () => { + const entityLink = + '<#E::table::pw-database-service-69e197ad.pw-database-76212f52.pw-database-schema-473d89b5.pw-table-c0cfe45a::columns::type>'; + const columnName = EntityLink.getTableColumnName(entityLink); + + expect(columnName).toStrictEqual('type'); + }); });