Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliasing table reference in cost_per_query and hourly_spend models #133

Closed
saurasingh opened this issue Oct 25, 2023 · 3 comments
Closed

Comments

@saurasingh
Copy link

saurasingh commented Oct 25, 2023

@NiallRees For the two models in the subject, we need to alias tables like daily_rates, 'stg_usage_in_currency_daily', stg_metering_history, stg_serverless_task_history, and stg_metering_daily_history. As the dbt CI adds the schema name as the prefix to the table name. Referencing columns from these tables breaks the object definition as they defer in the names, having an alias name should fix this.

Please refer to the screenshots:

Screenshot 2023-10-25 at 4 23 41 PM
Screenshot 2023-10-25 at 4 24 12 PM

Tried creating PR to fix this by myself but was not able to commit changes.

@ernestoongaro
Copy link
Contributor

Looks like my PR here would fix this as well

@saurasingh
Copy link
Author

Thanks for working on it @ernestoongaro. Do you have a steps on how did you contribute to the repo? I was strugling to setup in locally.

@NiallRees
Copy link
Member

Think this is now resolved! Let me know if 4.6.0 doesn't fix this for you @saurasingh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants