Skip to content

Commit

Permalink
feat: Rely on duckdb to check const feasibility (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored Oct 27, 2024
1 parent aa603c5 commit e401f7a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions R/relational-duckdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,6 @@ to_duckdb_expr <- function(x) {
out
},
relational_relexpr_constant = {
# FIXME: Should be duckdb's responsibility
check_df_for_rel(tibble(constant = x$val))

if ("experimental" %in% names(formals(duckdb$expr_constant))) {
experimental <- (Sys.getenv("DUCKPLYR_EXPERIMENTAL") == "TRUE")
out <- duckdb$expr_constant(x$val, experimental = experimental)
Expand Down

0 comments on commit e401f7a

Please sign in to comment.