From 66b207d9be27c76ac278cbbbb753dcd108cc51fd Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Wed, 6 Nov 2024 11:47:53 +0800 Subject: [PATCH] update --- src/common/arrow/src/native/write/view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);