-
Notifications
You must be signed in to change notification settings - Fork 132
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
[BUG] cast failure in replace_placeholder_with_period_filter on to_timestamp()
call
#239
Comments
✅ Successfully linked to Azure Boards work item(s): |
Thanks for this report. At this time, I'm closing this issue due to two reasons:
If you wish to continue using the custom materialisation, please see here for how to add support for the correct cast approach yourself, however I strongly recommend against using these materialisations. Please re-open this if necessary in the future. Thank you! |
Well, that was quick! Thanks for the response. I still believe correct cast should be used piece instead of hardcoding that: |
In AutomateDV, the default is used by Snowflake and we have platform specific implementations as needed, so the code you linked is correct for the Snowflake version, hence it's hard-coded. We were planning to change the implementation (if it had not been deprecated) to use your suggested approach of delegating the casting to a cross-platform macro. The current approach of using Snowflake as the default can be confusing. We are going to be changing this in future versions, where the default will raise an unimplemented error/warning instead. |
Describe the bug
cast fails for anything other than
varchar
in replace_placeholder_with_period_filter onto_timestamp()
callautomate-dv/macros/materialisations/period_mat_helpers/replace_placeholder_with_period_filter.sql
Lines 23 to 25 in d56ce03
Environment
dbt version: 1.8
automate_dv version: latest
Database/Platform: Trino
Expected behavior
cast should work as expected
AB#5589
The text was updated successfully, but these errors were encountered: