Skip to content

Commit

Permalink
use type checkers in backend-teradata.R
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Nov 5, 2024
1 parent d174c23 commit 662eafe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/backend-teradata.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ sql_translation.Teradata <- function(con) {
row_number = win_rank("ROW_NUMBER", empty_order = TRUE),
weighted.mean = function(x, w, na.rm = T) {
# nocov start
check_unsupported_arg(na.rm, allowed = TRUE)
win_over(
sql_expr(SUM((!!x * !!w))/SUM(!!w)),
win_current_group(),
Expand Down Expand Up @@ -191,6 +192,7 @@ sql_translation.Teradata <- function(con) {
},
weighted.mean = function(x, w, na.rm = T) {
# nocov start
check_unsupported_arg(na.rm, allowed = TRUE)
win_over(
sql_expr(SUM((!!x * !!w))/SUM(!!w)),
win_current_group(),
Expand Down

0 comments on commit 662eafe

Please sign in to comment.