Skip to content

Commit 40c29c5

Browse files
asubiottoampagent
andcommitted
Use explicit Arc clone in dictionary regression test
Signed-off-by: Alfonso Subiotto <[email protected]> Amp-Thread-ID: https://ampcode.com/threads/T-01a14f10-a76f-70ae-b135-158aa53da27a Co-authored-by: Amp <[email protected]>
1 parent c40c56e commit 40c29c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎encodings/uuid/src/arrow.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ mod tests {
660660
)?;
661661
let field = uuid_field.clone().with_data_type(dict.data_type().clone());
662662
let schema = Arc::new(Schema::new(vec![field]));
663-
let batch = RecordBatch::try_new(schema.clone(), vec![Arc::new(dict)])?;
663+
let batch = RecordBatch::try_new(Arc::clone(&schema), vec![Arc::new(dict)])?;
664664

665665
let array = session.from_arrow_record_batch(batch, &schema)?;
666666
assert_eq!(array.dtype(), &session.from_arrow_schema(&schema)?);

0 commit comments

Comments
 (0)