Skip to content

Commit

Permalink
fix: Check perfect roundtrip for constants again (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored Nov 2, 2024
1 parent 8e48b7c commit 90a1f02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/relational-duckdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ to_duckdb_expr <- function(x) {
out
},
relational_relexpr_constant = {
# FIXME: Should be duckdb's responsibility
# Example: https://github.com/dschafer/activatr/issues/18
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 90a1f02

Please sign in to comment.