LewisDavies / upstream-prod

A dbt package for easily using production data in a development environment.
32 stars 4 forks source link

Improve compatibiltiy with custom model aliases #26

Closed LewisDavies closed 9 months ago

LewisDavies commented 9 months ago

Adds support for projects using a custom generate_alias_name macro.

I have assumed that custom aliases are only used in dev environments and prod relations always have the same name as the model (+ version suffix when needed). The approach is a little hacky but it seems to work - and if prod relations differ from model file names, you're probably trying to use dbt in hacky way anyway.

This is only a minor version bump as there should be no difference to projects that don't use custom aliases.