diff --git a/src/common/arrow/src/native/write/view.rs b/src/common/arrow/src/native/write/view.rs index bb9101b0464d..fc5b416b04c1 100644 --- a/src/common/arrow/src/native/write/view.rs +++ b/src/common/arrow/src/native/write/view.rs @@ -40,8 +40,8 @@ pub(crate) fn write_view( w.write_all(input_buf)?; w.write_all(&(array.data_buffers().len() as u32).to_le_bytes())?; - buf.clear(); for buffer in array.data_buffers().iter() { + buf.clear(); let pos = buf.len(); w.write_all(&[codec as u8])?; buf.extend_from_slice(&[0u8; 8]);