hi, there, is it possible to map a database name t...
# all-things-deployment
e
hi, there, is it possible to map a database name to a custom one in datahub when importing it. e.g. I have a catalog of trino namef xdb, and I want it to be shown as
hello database
in datahub. what should I do.
✅ 1
h
Not sure how to do it during ingesting process. But you are able to update the display name of the dataset by using Java or Python SDK. Example as follows:
Copy code
MetadataChangeProposalWrapper mcpw = MetadataChangeProposalWrapper.builder()
    .entityType("dataset")
    .entityUrn(UrnUtils.getUrn("urn:li:dataset:(urn:li:dataPlatform:mysql,datahub.customer_1,PROD)"))
    .upsert()
    .aspect(new DatasetProperties().setDescription("用户信息表").setName("customer_1"))
    .build();
"customer_1" will be displaied in datahub instead of the orgianl one.
e
thanks for your help. Is it possible to be used to shorten dataset url path, e.g. the origin one is
datasets->PROD->trino->xdb->default
, is there some method to make it shorter e.g. removing the env (PROD).
b
h
@enough-eve-67949 Here is about how to set customer browser PATH. You are able to customize browser path by adding transformer section in the ingestion receipt Yaml file . See attached figure 1 as an example. Not sure how to do in browseV2 ...... https://datahubproject.io/docs/metadata-ingestion/docs/transformer/dataset_transformer#set-dataset-browsepath