This is an automated email from the ASF dual-hosted git repository.

findepi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 28c97fcf3d Fix build after logical conflict (#14791)
28c97fcf3d is described below

commit 28c97fcf3dfca3edbda67bb16544c2b0968cb7e4
Author: Andrew Lamb <[email protected]>
AuthorDate: Thu Feb 20 07:37:51 2025 -0500

    Fix build after logical conflict (#14791)
---
 datafusion/functions/src/core/getfield.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/datafusion/functions/src/core/getfield.rs 
b/datafusion/functions/src/core/getfield.rs
index d900ee5825..3ac26b9835 100644
--- a/datafusion/functions/src/core/getfield.rs
+++ b/datafusion/functions/src/core/getfield.rs
@@ -236,11 +236,11 @@ impl ScalarUDFImpl for GetFieldFunc {
 
         match (array.data_type(), name) {
             (DataType::Map(_, _), ScalarValue::List(arr)) => {
-                let key_array: Arc<dyn Array> = Arc::new((**arr).clone());
+                let key_array: Arc<dyn Array> = arr;
                 process_map_array(array, key_array)
             }
             (DataType::Map(_, _), ScalarValue::Struct(arr)) => {
-                process_map_array(array, Arc::clone(arr) as Arc<dyn Array>)
+                process_map_array(array, arr as Arc<dyn Array>)
             }
             (DataType::Map(_, _), other) => {
                 let data_type = other.data_type();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to