dbplyr translation of pmax
/pmin
throws an error if it receives the na.rm = TRUE argument
#479
Labels
pmax
/pmin
throws an error if it receives the na.rm = TRUE argument
#479
With aggregate functions like
max
andmin
, thedbplyr:::check_na_rm
gives a useful warning if the na.rm = TRUE option is not provided, and ifna.rm = TRUE
is provided, the option gets silently ignored. This behavior does not exist for the non-aggregate functionspmax()
andpmin
, which are now translated to GREATEST and LEAST in certain db backends. Instead, providing the optionpmax(..., na.rm = TRUE)
currently throws an error.The desired behavior is that, similar to aggregate functions min/max, pmin and pmax also throw a warning via dbplyr:::check_na_rm if no na.rm argument is provided, and that no error is thrown if na.rm = TRUE is provided.
Output:
The text was updated successfully, but these errors were encountered: