-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spike: Can we pick up domains from create a derived table #108
Comments
Investigate process for importing domains from CDT. Import to test environment to avoid disrupting UR. |
see domains here (the folders) https://github.com/moj-analytical-services/create-a-derived-table/tree/main/mojap_derived_tables/models |
The short answer is yes, we can pick up domains from create-a-derived-table in an automated way. But there are some points to consider in the details of implementation. The concept of domains, whilst recognised by DBT as a core concept of data management, it is not something that DBT captures as an explicit metadata property, i.e. it does not have it's own key/value in the overall DBT manifest json file (file containing all table metadata/configurations). This video from DBT shows create-a-derived-table follows the recommended implementation of data domains through folders. Domain Ingestion MethodsIt's possible to create a custom ingestion method to handle domain ingestion from create-a-derived-table, which can derive and ingest domains as set in the manifest json created on each run of DBT. Because of the point raised above (no domain key) there are a couple of different approaches that could be taken:
I have created a PoC custom ingestion source following option 1 and have ingested domains into the Datahub test env Potential Issues
|
Talking with @SoumayaMauthoorMOJ, there is a possibly a chance that domains will be introduced as dynamic tags within the config of create-a-derived-table and as part of the work planned to alter how domains are represented within s3 paths. |
Resources: https://mojdt.slack.com/archives/C03QZ776JVA/p1708360503491379?thread_ts=1708360446.980769&cid=C03QZ776JVA
The text was updated successfully, but these errors were encountered: