You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
glue::glue() has a .na parameter that allows you to control how NA is treated.
I would argue that glue::single_quote(NA) should be NA or should at least be controllable. Honestly, in the use cases I was trying (generating SQL), either single_quote(NA) = NA or single_quote(NA) = '' made the most sense to me. "NA" feels weird in that it is neither single quoted nor a value consistent with the nature of NA.
Awesome, thanks! I don't really remember, to be honest 😬 I think I had a FR for glue_sql, but this is all I recorded. Next time I work on this project, I will definitely let you know if there is something other than ignorance of functionality that kept me from using glue_sql 😄
glue::glue()
has a.na
parameter that allows you to control howNA
is treated.I would argue that
glue::single_quote(NA)
should beNA
or should at least be controllable. Honestly, in the use cases I was trying (generating SQL), eithersingle_quote(NA) = NA
orsingle_quote(NA) = ''
made the most sense to me."NA"
feels weird in that it is neither single quoted nor a value consistent with the nature of NA.Created on 2019-04-24 by the reprex package (v0.2.1)
The text was updated successfully, but these errors were encountered: