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

Fix/full refresh #350

Merged
merged 2 commits into from
Mar 27, 2017
Merged

Fix/full refresh #350

merged 2 commits into from
Mar 27, 2017

Conversation

drewbanin
Copy link
Contributor

make full refresh work, make tests actually test things. I also cleaned up some code relating to --non-destructive since the two are closely related.

Addresses:
#303
#348

Pre-req for #287

@drewbanin drewbanin added this to the dbt run improvements milestone Mar 26, 2017
@drewbanin drewbanin added 0.8.0 Release bug Something isn't working labels Mar 26, 2017
Copy link
Member

@cmcarthur cmcarthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great

# built-ins
context['ref'] = self.__ref(context, model, flat_graph)
context['config'] = self.__model_config(model, linker)
context['this'] = This(
context['env']['schema'],
(model.get('name') if dbt.flags.NON_DESTRUCTIVE
else '{}__dbt_tmp'.format(model.get('name'))),
this_table,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dig it

self.assertGreater(
len(columns),
0
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is cool. not directly related to this branch but i don't think this works on snowflake. it'd be great to test this across warehouses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmm ok. I'm going to merge this b/c the already_exists work is blocking. But I'll make an issue for better Snowflake integration tests

@drewbanin drewbanin merged commit da6c467 into development Mar 27, 2017
@drewbanin drewbanin deleted the fix/full-refresh branch June 19, 2017 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants