I'm sure this has been asked before, but I can't f...
# advice-metadata-modeling
d
I'm sure this has been asked before, but I can't find in the docs how to do it... How do i change this browsing breadcrumb from
prod
to
dev
or whatever else I want. These are not prod datasets
image.png
I'm referencing a
platform_instance
in the config. I had
env: dev
before and I saw a log that that was deprecated
d
set_dataset_browse_path
?
Copy code
transformers:
  - type: "set_dataset_browse_path"
    config:
      path_templates:
        - /dev/PLATFORM/DATASET_PARTS
?
g
Yes!
d
or should i be using
env: dev
still?
Copy code
source:
  type: postgres
  config:
    env: dev
    platform_instance: dev_product
...
transformers:
  - type: "set_dataset_browse_path"
    config:
      path_templates:
        - /ENV/PLATFORM/DATASET_PARTS
g
You can set 'env: dev' on your ingestion config file. But the env value has a set of possible values. With a transformer, you have the flexibility to do what you want.
d
gotcha
is
env
going away?
g
I don't know. I think is useful for some use cases. In my case, env is completely ignored even if it's used to build URNs. So, by default, all URNs in my platform are PROD.
d
gotcha
thanks!
saw this log:
Copy code
[2023-01-26 15:58:36,150] WARNING  {py.warnings:109} - /Users/adamprice/.pyenv-x86_64/versions/3.8.13/envs/datahubclient-3.8.13/lib/python3.8/site-packages/datahub/ingestion/source/snowflake/snowflake_v2.py:291: ConfigurationWarning: env is deprecated and will be removed in a future release. Please use platform_instance instead.
g
So, there is your answer kkk But now I'm interested to know how they will deal with URNs.
I use BigQuery ingestion and every URN has the patterm urnlidataset:..., <env>
d
right
i guess it's a long-term plan
g
Yeah! Make sense
So, I'm here if there is anything I could help with!
d
thanks!