diff --git a/core/dbt/include/global_project/macros/get_custom_name/get_custom_alias.sql b/core/dbt/include/global_project/macros/get_custom_name/get_custom_alias.sql index 187d3970d52..ebb3cb41b56 100644 --- a/core/dbt/include/global_project/macros/get_custom_name/get_custom_alias.sql +++ b/core/dbt/include/global_project/macros/get_custom_name/get_custom_alias.sql @@ -23,7 +23,7 @@ {{ custom_alias_name | trim }} - {%- elif node.version -%} + {%- elif node.version and not node.is_latest_version -%} {{ return(node.name ~ "_v" ~ (node.version | replace(".", "_"))) }}