From 90d05419614c81bc3abed76754f5f44b6715bb66 Mon Sep 17 00:00:00 2001 From: SeungMin Date: Sun, 28 Jun 2026 00:39:48 +0900 Subject: [PATCH] fix: handle DataType::Vector in row.rs exhaustive match arms --- crates/paimon/src/arrow/format/row.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/paimon/src/arrow/format/row.rs b/crates/paimon/src/arrow/format/row.rs index 123f993e..0ffcfd9e 100644 --- a/crates/paimon/src/arrow/format/row.rs +++ b/crates/paimon/src/arrow/format/row.rs @@ -538,6 +538,9 @@ fn validate_supported_type(data_type: &DataType) -> crate::Result<()> { } Ok(()) } + DataType::Vector(_) => Err(Error::Unsupported { + message: "VectorType is not supported in the .row format".to_string(), + }), } } @@ -700,6 +703,11 @@ fn write_field_value( let row = downcast::(array, data_type)?; write_struct_row(out, row, row_idx, r.fields())?; } + DataType::Vector(_) => { + return Err(Error::Unsupported { + message: "VectorType is not supported in .row field serialization".to_string(), + }); + } } Ok(()) } @@ -1208,6 +1216,11 @@ impl ColumnBuilder { validities: Vec::with_capacity(capacity), len: 0, }, + DataType::Vector(_) => { + return Err(Error::Unsupported { + message: "VectorType is not supported in .row ColumnBuilder".to_string(), + }); + } }) }