This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-rust.git


The following commit(s) were added to refs/heads/main by this push:
     new 4102185  fix: handle DataType::Vector in row.rs exhaustive match arms 
(#418)
4102185 is described below

commit 41021854b17637ba8ca5912e246360da5cbc443a
Author: SeungMin <[email protected]>
AuthorDate: Mon Jun 29 11:52:23 2026 +0900

    fix: handle DataType::Vector in row.rs exhaustive match arms (#418)
---
 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 123f993..0ffcfd9 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::<StructArray>(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(),
+                });
+            }
         })
     }
 

Reply via email to