This file contains the changelog for the Data Engineers Snowflake DataOps Utils project, detailing updates, fixes, and enhancements made to the project over time.
- modified macro
clean_objectsto cater for removing Semantic Views and Snowflake Agents
- modified macro
grant_schema_object_privilegesto to esnure schema is passed correct to the helper macros - modified macro
get_functionsandget_procueduresto ensure the correct handling of arguments
##v0.3.10.4 - 2026-03-09 - Function / Procedure Bulk Grant fix
- modified macro
grant_schema_object_privilegesto correct append arguments to functions and procedures
- modified macro
grant_schema_object_privilegesto ignore in_built functions and procedures
- added macro
grant_schema_object_privilegesto be able to apply permissions to all objects within a schema to a role
- added macro
grant_object_applicationto apply the required permissions on the provided object to an application - updated macro
grant_schema_readto only processROLEand notAPPLICATIONgrant statements
- added macro
grant_internal_share_readto applyselectpermissions on all tables and views - added macro
create_internal_sharewhich will create a share that allows unsecured objects and grants reference usage on downstream databases - updated macro
has_matching_nodesto cater for line breaks in the arguments being passed in - updated version of
dbt_utilsto 1.3.3
- fixed issue where tag documentation was not being rendered correctly
- added macro
grant_procedure_usageto enable the ability to grant usage of a stored procedure to a role
- added grant usage to application for
sp_sync_in thegrant_privilegesmacro - fixed issue with
clean_genericmacro not handlingfile formatsandnetwork rulescorrectly causing them to be dropped at the end of a dbt run
- added handling for materialized views in the
clean_modelsmacro
- updated macro
get_grant_functions_ownership_sqlto fix issue with parameterless function signature not being returned correctly - added additional logging to
grant_objectmacro to ensure that the correct parameters are being passed
- added additional logging to
grant_objectmacro to ensure that the correct parameters are being passed
- updated macro
get_grant_procedure_ownership_sqlto fix issue with parameterless procedure signature not being returned correctly
- updated
grant_database_ownershipto include the only grant ownership to a role if the role is not already the owner - updated
grant_schema_ownershipto include the only grant ownership to a role if the role is not already the owner
- updated macro
apply_meta_as_tagsto enable the ability to apply meta as tags based on definitioins defined within the Monitiorial Data Governance Native App._typeis now replaced with_classificationinstead of_dataand added in mapping ofdefault_masktodefault_mask_value
- added macro
execute_taskto enable the ability to execute a task at the end of a run
- 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
- removed the macros relating to the atomic unit test as they are no longer required
- 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_utilspackage to version 1.3.0
- added macro
grant_integration_ownershipto enable the ability to grant ownership of an integration - added macro
grant_integration_usageto enable the ability to grant usage access to an integration - modified macro
grant_schema_readto include shares when granting permissions - modified macro
grant_schema_ownershipto include network rules, secrets and shares when granting permissions - modified macro
clean_objectsto include network rules and secrets when cleaning objects - modified macro
clean_genericto fix schema column positioning for secrets - modified macros
depends_on_refanddepends_on_sourceto cater for issues found in dbt-core 1.8 - modified macro
grant_share_readto only includeOUTBOUNDshares
- modified macros
depends_on_refanddepends_on_sourceto cater for issues found in dbt-core 1.8
- added macro
create_shareto enable the ability to create a share - added macro
grant_share_readto enable the ability to grant a share to an account - modified
grant_schema_readto exclude shares when revoking permissions - modified
grant_database_usageto take into account shares - modified
grant_database_usageto specify to revoke grants or not
- Fixed macros
depends_on_refanddepends_on_sourceto cater for change in dbt behaviour
- Added the ability to grant and revoke access to a role
- Macros added:
grant_database_ownershipgrant_database_usagegrant_objectgrant_privilegesgrant_schema_monitorgrant_schema_operategrant_schema_onwershipgrant_schema_readdatabase_clonedatabase_destroyschema_clone
- added macro
enable_dependent_tasksto enable the ability to enable dependant tasks from a root task - added query helper macros:
get_populated_arrayget_populated_array_value_as_stringget_populated_array_value_as_numberget_populated_numeric_valueget_populated_string_valuestring_epoch_to_timestamp_ltzstring_epoch_to_timestamp_ntzunknown_member
- corrected naming for
model_contains_tag_metamacro frommodel_columns_contains_tag_meta - updated
get_merge_statementmacro to remove thebegin;andcommit;statements as they are not required
- added macro
apply_meta_as_tagsto enable the ability to apply meta as tags to a table or a view - added macro
model_columns_contains_tag_metato enable the ability to check if a model contains meta data for a column - added macro
set_column_tag_valueto enable the apply the meta data to a column
- added macro
drop_table_if_existsto enable the ability to drop a table if it exists - designed for dynamic tables.
- add macro
drop_view_if_existsto enable the ability to drop a view if it exists - designed for dynamic tables.
- added macro
target_lag_environmentandtarget_warehouse_environmentto enable the ability to target a different environment for the lag and warehouse
- updated macro
clean_objectsto remove dynamic tables as necessary
- updated macro
get_default_merge_statementandget_merge_statementto cater for the case where the source is not a native dbt component (eg stream) - update
dbt_utilsto use version1.1.1
- updated macro
clean_objectsto enable a list of environments that should be executed in instead of boolean dry_run flag
- updated marco
clean_genericto cater for monitorial objects - updated macro
drop_objectsto have message about dry run statements
- updated macro
get_merge_statementto allow the destnation schema to be specified - added macro
get_default_merge_statementto allow the use of the merge statement which is non vendor specific
- updated macro
clean_objectsso to enable easier configuration instead of boolean flags - updated unit test macros to process null's correctly
- updated macro
clean_objectsso that it is able to remove file formats and alerts from snowflake
- added macro
generate_surrogate_keyso that it doesn't include whitespace which appears in the dbt-utils version
- 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
- Add ability to remove items from a database which are not part of the dbt project
- Added ability to test stored procedures and user defined functions
- Added ability to create external tables