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
Add last_cached_at metadata column for existing shards #122
Conversation
@robertzk @kirillseva |
Nice tests man! |
thanks @kirillseva |
Nice tests |
describe("when safe_column is TRUE", { | ||
test_that('it crashes when trying to expand a table on new column', { | ||
dbtest::with_test_db({ | ||
lapply(dbListTables(test_con), function(t) dbRemoveTable(test_con, t)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to do this anymore... @peterhurford ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kirillseva Just did a little test. Tables persist between runs. So this line is still needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No you have to do this using with_test_db
. But dbtest::db_test_that
would do this automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterhurford oh woah.. Nice! That's really helpful. Thanks for clearing it up.
@khalidharun backmerge again |
@kirillseva is there rebuild button for Travis? It hit a github error again. |
@robertzk ready to go |
Add last_cached_at metadata column for existing shards
It was discovered that existing shards that don't have a
last_cached_at
column (ie. created before cachemeifyoucan version 0.2.3.4) doesn't work correctly withsafe_columns
. That issue is now addressed in this PR.