mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-11 16:58:38 +00:00
Add Multilingual Support in EntityLink (#13826)
This commit is contained in:
parent
6fd71be54c
commit
0a04ce85bb
@ -29,6 +29,10 @@ from metadata.utils.entity_link import get_decoded_column, get_table_or_column_f
|
|||||||
"<#E::table::rds.dev.dbt_jaffle.column_w_space::columns::last_name>",
|
"<#E::table::rds.dev.dbt_jaffle.column_w_space::columns::last_name>",
|
||||||
"last_name",
|
"last_name",
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"<#E::table::rds.dev.dbt_jaffle.column_w_space::columns::随机的>",
|
||||||
|
"随机的",
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_get_decoded_column(entity_link, expected):
|
def test_get_decoded_column(entity_link, expected):
|
||||||
|
@ -93,6 +93,10 @@ class TestEntityLink(TestCase):
|
|||||||
'<#E::table::bigquery_gcp."shop-ify"."raw-product-catalog6">',
|
'<#E::table::bigquery_gcp."shop-ify"."raw-product-catalog6">',
|
||||||
["table", 'bigquery_gcp."shop-ify"."raw-product-catalog6"'],
|
["table", 'bigquery_gcp."shop-ify"."raw-product-catalog6"'],
|
||||||
),
|
),
|
||||||
|
EntityLinkTest(
|
||||||
|
"<#E::table::随机的>",
|
||||||
|
["table", "随机的"],
|
||||||
|
),
|
||||||
]
|
]
|
||||||
for x in xs:
|
for x in xs:
|
||||||
x.validate(entity_link.split(x.entitylink), x.split_list)
|
x.validate(entity_link.split(x.entitylink), x.split_list)
|
||||||
|
@ -50,5 +50,5 @@ ENTITY_ATTRIBUTE
|
|||||||
;
|
;
|
||||||
|
|
||||||
ENTITY_FQN
|
ENTITY_FQN
|
||||||
: [a-zA-Z0-9,. _\-'&()%"]+
|
: [\p{L}\p{N},. _\-'&()%"]+
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user