Skip to content

Commit

Permalink
Expression depth 100/200, duckdb/duckdb-r#101
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Mar 10, 2024
1 parent 576ecf9 commit ffa7e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/relational.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ rel_try <- function(rel, ..., call = NULL) {
}

# https://github.com/duckdb/duckdb-r/issues/101
DBI::dbExecute(get_default_duckdb_connection(), "SET max_expression_depth TO 990")
DBI::dbExecute(get_default_duckdb_connection(), "SET max_expression_depth TO 100")
withr::defer({
DBI::dbExecute(get_default_duckdb_connection(), "SET max_expression_depth TO 1000")
DBI::dbExecute(get_default_duckdb_connection(), "SET max_expression_depth TO 200")
})

if (Sys.getenv("DUCKPLYR_FORCE") == "TRUE") {
Expand Down

0 comments on commit ffa7e96

Please sign in to comment.