-
Notifications
You must be signed in to change notification settings - Fork 469
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
Remove try_cast #112
Remove try_cast #112
Conversation
Per issue dbt-labs#89 `try_cast` only works on strings (https://docs.snowflake.net/manuals/sql-reference/functions/try_cast.html). As a result, this is causing errors in other macros (eg `union_table`)
Thanks for the PR @dapearce. I think you're probably right -- the I tried to see if i could do something like
but it looks like I'm ok with this change, but would like to get @jthandy's thoughts too, as he's spent more time in here recently than I have. |
I actually believe that the problem is with the union macro, not with I do think there is another conversation to be had around the ideal implementation of this macro, and @clrcrl has been doing some work on that over in the Redshift package, but really I think the ideal solution to the particular problem raised in that issue is that we shouldn't be using |
Just to add-- |
The argument for the use of |
Thanks! |
Per issue #89
try_cast
only works on strings (https://docs.snowflake.net/manuals/sql-reference/functions/try_cast.html). As a result, this is causing errors in other macros (egunion_tables
)