@@ -535,7 +535,7 @@ pub trait ActiveModelTrait: Clone + Debug {
535535 /// are attempted first. If the model uses time-crate types, the conversion
536536 /// automatically falls back to the time-crate representation.
537537 #[ cfg( feature = "with-arrow" ) ]
538- fn from_arrow ( batch : & arrow:: array:: RecordBatch ) -> Result < Vec < Self > , DbErr > {
538+ fn from_arrow ( batch : & sea_orm_arrow :: arrow:: array:: RecordBatch ) -> Result < Vec < Self > , DbErr > {
539539 use crate :: { IdenStatic , Iterable , with_arrow:: arrow_array_to_value} ;
540540
541541 let num_rows = batch. num_rows ( ) ;
@@ -602,12 +602,12 @@ pub trait ActiveModelTrait: Clone + Debug {
602602 #[ cfg( feature = "with-arrow" ) ]
603603 fn to_arrow (
604604 models : & [ Self ] ,
605- schema : & arrow:: datatypes:: Schema ,
606- ) -> Result < arrow:: array:: RecordBatch , DbErr > {
605+ schema : & sea_orm_arrow :: arrow:: datatypes:: Schema ,
606+ ) -> Result < sea_orm_arrow :: arrow:: array:: RecordBatch , DbErr > {
607607 use crate :: { Iterable , with_arrow:: option_values_to_arrow_array} ;
608608 use std:: sync:: Arc ;
609609
610- let mut columns: Vec < Arc < dyn arrow:: array:: Array > > =
610+ let mut columns: Vec < Arc < dyn sea_orm_arrow :: arrow:: array:: Array > > =
611611 Vec :: with_capacity ( schema. fields ( ) . len ( ) ) ;
612612
613613 for field in schema. fields ( ) {
@@ -630,12 +630,13 @@ pub trait ActiveModelTrait: Clone + Debug {
630630 columns. push ( array) ;
631631 } else {
632632 // Field in schema but not in entity → null column
633- let array = arrow:: array:: new_null_array ( field. data_type ( ) , models. len ( ) ) ;
633+ let array =
634+ sea_orm_arrow:: arrow:: array:: new_null_array ( field. data_type ( ) , models. len ( ) ) ;
634635 columns. push ( array) ;
635636 }
636637 }
637638
638- arrow:: array:: RecordBatch :: try_new ( Arc :: new ( schema. clone ( ) ) , columns)
639+ sea_orm_arrow :: arrow:: array:: RecordBatch :: try_new ( Arc :: new ( schema. clone ( ) ) , columns)
639640 . map_err ( |e| DbErr :: Type ( format ! ( "Failed to create RecordBatch: {e}" ) ) )
640641 }
641642
0 commit comments