File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
native/spark-expr/src/string_funcs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ fn regexp_extract_all_array<T: OffsetSizeTrait>(
357357
358358 let string_builder = GenericStringBuilder :: < T > :: new ( ) ;
359359 let mut list_builder =
360- arrow:: array:: ListBuilder :: new ( string_builder) . with_field ( item_field . clone ( ) ) ;
360+ arrow:: array:: ListBuilder :: new ( string_builder) . with_field ( Arc :: clone ( & item_field ) ) ;
361361
362362 for s in string_array. iter ( ) {
363363 match s {
@@ -379,9 +379,9 @@ fn regexp_extract_all_array<T: OffsetSizeTrait>(
379379 // Manually create a new ListArray with the correct field schema to ensure nullable is false
380380 // This ensures the schema matches what we declared in return_type
381381 Ok ( Arc :: new ( ListArray :: new (
382- FieldRef :: from ( item_field . clone ( ) ) ,
382+ FieldRef :: from ( Arc :: clone ( & item_field ) ) ,
383383 list_array. offsets ( ) . clone ( ) ,
384- list_array. values ( ) . clone ( ) ,
384+ Arc :: clone ( list_array. values ( ) ) ,
385385 list_array. nulls ( ) . cloned ( ) ,
386386 ) ) )
387387}
You can’t perform that action at this time.
0 commit comments