dbplyr 2.1.0
New features
-
Thanks to @mgirlich, dbplyr gains support for key verbs from tidyr:
pivot_longer()(#532),pivot_wider()(#543),expand()(#538),
complete()(#538),replace_na()(#538),fill()(#566). -
@mgirlich is now a dbplyr author in recognition of his significant and
sustained contributions. -
across()implementation has been rewritten to support more inputs:
it now translates formulas (#525), works with SQL functions that don't have
R translations (#534), and work withNULL(#554) -
summarise()now supports argument.groups(@mgirlich, #584).
SQL translation
-
All backends:
str_sub(),substr()andsubstring()get better
translations (#577). Most importantly, the results of using negative
locations should match the underlying R implementations more closely. -
MS SQL:
-
as.integer()andas.integer64()translations cast first toNUMERIC
to avoid CASTing weirdness (@DavidPatShuiFong, #496). -
Assumes a boolean context inside of
[(#546) -
str_sub()withend = -1now works (#577).
-
-
Redshift:
lag()andlead()lose thedefaultparameter since it's
not supported (@hdplsa, #548). -
SQLite: custom translation of
full_join()andright_join()
(@mgirlich, #536).
Minor improvements and bug fixes
-
RPostgreSQL backend warns if
temporary = TRUEsince temporary tables are
not supported byRPostgres::dbWriteTable()(#574). -
count()method provides closer match to dplyr semantics (#347). -
db_connection_describe()no longer uses partial matching (@mgirlich, #564). -
pull()no longerselect()s the result when there's already only
one variable (#562). -
select()no longer relocates grouping variables to the front
(@mgirlich, #568). and informs when adding missing grouping variables
(@mgirlich, #559). -
tbl.src_dbi(...)now passed on totbl_sql()(#530).