-
Notifications
You must be signed in to change notification settings - Fork 74
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
Type string macro handling all cases #475
Type string macro handling all cases #475
Conversation
…y models in dbt_project_evaluator package. No need to override it for all models in a project anymore when using package.
…specific implementation
I had a chat with the team and we don't really want to introduce a We understand that with #469, the first time CI when the package is added it might pick up more models than needed, but this should happen only once and could be handled manually. I am going on leave for a couple of weeks and will want to revisit the few different issues we have around strings with Redshift but this particular PR is likely not one we would want to merge to this repo. |
It's not only the issue of dealing with models being marked as changed the first time it runs, but redefining ultimately all existing models whenever the string type was used. |
I have to agree with @mweso-softserve here. In your current approach you have overwritten a core macro |
Thanks for the feedback. I was out of office for a bit but I will try to talk again with the team by next week. |
We had a chat internally today. As both of you raise the same point, we are going forward with this approach, creating a Hopefully it should help people loading strings in Redshift which we a few issues were raised about. |
Creates a macro that redefine type_string for models in dbt_project_evaluator package. No need to override it for all models in a project anymore when using package.
This attempt uses api.Column.string_type(600) for all databases except bigquery.
This is a:
Link to Issue
Closes #469
Description & motivation
This implementation replaces
type_string()
macro which does't work for redshift for tables defined in the way it was implemented in dbt-project-evaluastor withapi.Column.string_type(600)
Checklist
I tested that on a local version of this package without dispatcher configuration.