Skip to content

Latest commit

 

History

History
240 lines (154 loc) · 10.2 KB

File metadata and controls

240 lines (154 loc) · 10.2 KB

Data Engineers Snowflake DataOps Utils Project Changelog

This file contains the changelog for the Data Engineers Snowflake DataOps Utils project, detailing updates, fixes, and enhancements made to the project over time.

v0.3.10.6 - 2026-03-19 - Clean up Semantic Views/Agents

  • modified macro clean_objects to cater for removing Semantic Views and Snowflake Agents

v0.3.10.5 - 2026-03-10 - Function / Procedure Bulk Grant fix

  • modified macro grant_schema_object_privileges to to esnure schema is passed correct to the helper macros
  • modified macro get_functions and get_procuedures to ensure the correct handling of arguments

##v0.3.10.4 - 2026-03-09 - Function / Procedure Bulk Grant fix

  • modified macro grant_schema_object_privileges to correct append arguments to functions and procedures

v0.3.10.3 - 2026-03-09 - Bulk Grants

  • modified macro grant_schema_object_privileges to ignore in_built functions and procedures

v0.3.10.2 - 2026-02-26 - Bulk Grants

  • added macro grant_schema_object_privileges to be able to apply permissions to all objects within a schema to a role

v0.3.10.1 - 2026-02-12 - Grant Application Select

  • added macro grant_object_application to apply the required permissions on the provided object to an application
  • updated macro grant_schema_read to only process ROLE and not APPLICATION grant statements

v0.3.10 - 2026-02-10 - Grant Shares

  • added macro grant_internal_share_read to apply select permissions on all tables and views
  • added macro create_internal_share which will create a share that allows unsecured objects and grants reference usage on downstream databases
  • updated macro has_matching_nodes to cater for line breaks in the arguments being passed in
  • updated version of dbt_utils to 1.3.3

v0.3.9.1 2025-07-10 - Tag Doc Fix

  • fixed issue where tag documentation was not being rendered correctly

v0.3.9 2025-06-10 - Grant Object For Procedures

  • added macro grant_procedure_usage to enable the ability to grant usage of a stored procedure to a role

v0.3.8.5 2025-08-25 - Grant Usage to Application

  • added grant usage to application for sp_sync_ in the grant_privileges macro
  • fixed issue with clean_generic macro not handling file formats and network rules correctly causing them to be dropped at the end of a dbt run

v0.3.8.4 2025-08-22 - Materialized View Handling

  • added handling for materialized views in the clean_models macro

v0.3.8.3 2025-07-30 - Grant Fixes

  • updated macro get_grant_functions_ownership_sql to fix issue with parameterless function signature not being returned correctly
  • added additional logging to grant_object macro to ensure that the correct parameters are being passed

v0.3.8.2 2025-07-15 - Grant Fixes

  • added additional logging to grant_object macro to ensure that the correct parameters are being passed

v0.3.8.1 2025-07-25 - Stored Procedure Grants

  • updated macro get_grant_procedure_ownership_sql to fix issue with parameterless procedure signature not being returned correctly

v0.3.8 2025-07-23 - Grant Modifications

  • updated grant_database_ownership to include the only grant ownership to a role if the role is not already the owner
  • updated grant_schema_ownership to include the only grant ownership to a role if the role is not already the owner

v0.3.7 2025-04-30 - Tagging

  • updated macro apply_meta_as_tags to enable the ability to apply meta as tags based on definitioins defined within the Monitiorial Data Governance Native App. _type is now replaced with _classification instead of _data and added in mapping of default_mask to default_mask_value

v0.3.6 - 2025-04-09 - tasks

  • added macro execute_task to enable the ability to execute a task at the end of a run

v0.3.5.1 - 2025-01-03 - Minor Fixes

  • updated dynamic table model cleaning
  • removed quote from depends_on_ref statement
  • added in run-operation for monitior grants
  • added in dynamic table into read specifics
  • updated depends_on_ref and depends_on_source to cater for dbt-core 1.9 changes
  • get_merge_statement updated to cater for dbt-core 1.9 changes

v0.3.5 2024-11-18 - Atomic Unit Test Removed

  • removed the macros relating to the atomic unit test as they are no longer required

v0.3.4 2024-10-31 - Privileges Fixes

  • modified macro grant_database_ownership - fixed issue with the macro where ownership was not being granted correctly
  • modified macro grant_integration_ownership - fixed issue with the macro where ownership was not being granted correctly
  • modified macro grant_integration_usgae - fixed issue with the macro where ownership was not being granted correctly
  • modified macro grant_schema_ownership - fixed issue with the macro where usage was not being granted correctly
  • updated dbt_utils package to version 1.3.0

v0.3.3 2024-07-18 - Integration, Network Rules and Secrets

  • added macro grant_integration_ownership to enable the ability to grant ownership of an integration
  • added macro grant_integration_usage to enable the ability to grant usage access to an integration
  • modified macro grant_schema_read to include shares when granting permissions
  • modified macro grant_schema_ownership to include network rules, secrets and shares when granting permissions
  • modified macro clean_objects to include network rules and secrets when cleaning objects
  • modified macro clean_generic to fix schema column positioning for secrets
  • modified macros depends_on_ref and depends_on_source to cater for issues found in dbt-core 1.8
  • modified macro grant_share_read to only include OUTBOUND shares

v0.3.2 2024-05-15

  • modified macros depends_on_ref and depends_on_source to cater for issues found in dbt-core 1.8

v0.3.1 2024-03-17

  • added macro create_share to enable the ability to create a share
  • added macro grant_share_read to enable the ability to grant a share to an account
  • modified grant_schema_read to exclude shares when revoking permissions
  • modified grant_database_usage to take into account shares
  • modified grant_database_usage to specify to revoke grants or not

v0.3.0.1 2024-02-15

  • Fixed macros depends_on_ref and depends_on_source to cater for change in dbt behaviour

v0.3.0 2024-02-15

  • Added the ability to grant and revoke access to a role
  • Macros added:
    • grant_database_ownership
    • grant_database_usage
    • grant_object
    • grant_privileges
    • grant_schema_monitor
    • grant_schema_operate
    • grant_schema_onwership
    • grant_schema_read
    • database_clone
    • database_destroy
    • schema_clone

v0.2.5 2024-01-10

  • added macro enable_dependent_tasks to enable the ability to enable dependant tasks from a root task
  • added query helper macros:
    • get_populated_array
    • get_populated_array_value_as_string
    • get_populated_array_value_as_number
    • get_populated_numeric_value
    • get_populated_string_value
    • string_epoch_to_timestamp_ltz
    • string_epoch_to_timestamp_ntz
    • unknown_member

v0.2.4.9 2023-12-20

  • corrected naming for model_contains_tag_meta macro from model_columns_contains_tag_meta
  • updated get_merge_statement macro to remove the begin; and commit; statements as they are not required

v0.2.4.8 2023-12-12

  • added macro apply_meta_as_tags to enable the ability to apply meta as tags to a table or a view
  • added macro model_columns_contains_tag_meta to enable the ability to check if a model contains meta data for a column
  • added macro set_column_tag_value to enable the apply the meta data to a column

v0.2.4.7 2023-11-01

  • added macro drop_table_if_exists to enable the ability to drop a table if it exists - designed for dynamic tables.

v0.2.4.6 2023-10-02

  • add macro drop_view_if_exists to enable the ability to drop a view if it exists - designed for dynamic tables.

v0.2.4.5 2023-09-05

  • added macro target_lag_environment and target_warehouse_environment to enable the ability to target a different environment for the lag and warehouse

v0.2.4.4 2023-08-16

  • updated macro clean_objects to remove dynamic tables as necessary

v0.2.4.3 2023-08-11

  • updated macro get_default_merge_statement and get_merge_statement to cater for the case where the source is not a native dbt component (eg stream)
  • update dbt_utils to use version 1.1.1

v0.2.4.2 2023-06-22

  • updated macro clean_objects to enable a list of environments that should be executed in instead of boolean dry_run flag

v0.2.4.1 2023-06-08

  • updated marco clean_generic to cater for monitorial objects
  • updated macro drop_objects to have message about dry run statements

v0.2.4 2023-05-18

  • updated macro get_merge_statement to allow the destnation schema to be specified
  • added macro get_default_merge_statement to allow the use of the merge statement which is non vendor specific

v0.2.3 2023-04-19

  • updated macro clean_objects so to enable easier configuration instead of boolean flags
  • updated unit test macros to process null's correctly

v0.2.2 2023-02-10

  • updated macro clean_objects so that it is able to remove file formats and alerts from snowflake

v0.2.1 2023-01-31

  • added macro generate_surrogate_key so that it doesn't include whitespace which appears in the dbt-utils version

v0.2.0 2023-01-12

  • Upgraded project to be compatible with dbt v1.3.2
  • Removed reliance on dbt logging which is being depricated
  • updated generate_schema_name macro to cater for subfolders in sources for ease of navigating but provides it at the schema level otherwise
  • new macros added:
    • dimension_id
    • last_day_of_month
    • first_day_of_month
    • to_date
    • string_to_num
    • num_to_date
    • null_to_empty_string

v0.1.9 2022-09-09

  • Add ability to remove items from a database which are not part of the dbt project

v0.1.8 2022-08-26

  • Added ability to test stored procedures and user defined functions

v0.1.7 2022-08-18

  • Added ability to create external tables