Is there some magic to using dplyr
to access a database when it has a date field?
A dplyr
tbl_df
converts mysql datetime fields to chr. That wouldn't be so bad if I could as.Date()
them back. But if I do that before collect()
'ing the table, I get an error that as.Date()
is an invalid sql function. I can sort-of workaround this by calling collect()
, but then I'm copying all of the data out of the database, which is what I was trying to avoid. In addition, once I've collect()
'ed, its a data.frame
, so if I want to join it with another tbl
I have to set copy=TRUE
and copy that one into memory as well.