Closed jp-vanheerden closed 3 months ago
Two new notebooks added to: dbt\include\fabricsparknb\notebooks
:
compare_notebook
this file gets generated by the compare() commandutil_BuildMetadata
this file has been added to the pre_dbt upload functionTwo new commands added:
buildcomparemetadata: which will execute the util_buildmetadata notebook in the environment configured. This notebook will create a comparemetadata
table in their respective environment that will store the Lakehouse schema information.
Arguments:
compare: This command will compare two environments Lakehouse's. Generated notebooks will be uploaded to the 'target' environment configured in the 'profile.yml' file which will contain the sql commands that can be used to create and alter tables, from one environment to the next.
New items required in the profile.yml file to specify the other environments to compare to:
Review session setup for tuesday with 13th August to confirm all happy
Created #185 and #186 to address the further enhancements
Is your feature request related to a problem? Please describe. When promoting between environments (eg Dev and UAT), tables may be different or not exist in the second environment. The process of updating the tables is currently manual and it would be useful to have a process that compares the table definitions between two environments and generates a script to change the second environment to match the first environment.
Describe the solution you'd like Process that:
Describe alternatives you've considered There may be utilities available in the community that can be re-used
Additional context N/A