From 94f02de2fa9569f65eb1916eef76ed834b03c971 Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Tue, 10 Sep 2024 10:50:39 -0500 Subject: [PATCH] update SessionConfig.set that now takes a reference. Ref: https://github.com/apache/datafusion/pull/12113 --- src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.rs b/src/context.rs index 11b9fed5f..a3cc8b5f1 100644 --- a/src/context.rs +++ b/src/context.rs @@ -86,7 +86,7 @@ impl PySessionConfig { let mut config = SessionConfig::new(); if let Some(hash_map) = config_options { for (k, v) in &hash_map { - config = config.set(k, ScalarValue::Utf8(Some(v.clone()))); + config = config.set(k, &ScalarValue::Utf8(Some(v.clone()))); } }