Skip to content

Commit 8dde6b9

Browse files
committed
Fix tests
1 parent 0ede3a4 commit 8dde6b9

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

sea-orm-sync/tests/arrow_schema_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//!
44
//! cargo t --test arrow_schema_tests --features=with-arrow
55
6-
use arrow::datatypes::{DataType, Field, Schema, TimeUnit};
76
use sea_orm::ArrowSchema;
7+
use sea_orm_arrow::arrow::datatypes::{DataType, Field, Schema, TimeUnit};
88

99
// ---------------------------------------------------------------------------
1010
// Entities using #[sea_orm::model] (2.0 format, arrow_schema flag)

sea-orm-sync/tests/arrow_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#![cfg(feature = "with-arrow")]
22
//! cargo t --test arrow_tests --features=with-arrow
33
//! cargo t --test arrow_tests --features=with-arrow,with-bigdecimal
4-
use arrow::array::*;
5-
use arrow::datatypes::{DataType, Field, Schema, TimeUnit};
64
use sea_orm::entity::prelude::*;
75
use sea_orm::{ActiveValue::NotSet, ArrowSchema, Set, arrow};
6+
use sea_orm_arrow::arrow::array::*;
7+
use sea_orm_arrow::arrow::datatypes::{DataType, Field, Schema, TimeUnit};
88
use std::sync::Arc;
99

1010
/// Test entity with all supported primitive types
@@ -1469,7 +1469,7 @@ mod bigdecimal_tests {
14691469

14701470
#[test]
14711471
fn test_from_arrow_decimal256_bigdecimal() {
1472-
use arrow::datatypes::i256;
1472+
use sea_orm_arrow::arrow::datatypes::i256;
14731473

14741474
let schema = Arc::new(Schema::new(vec![
14751475
Field::new("id", DataType::Int32, false),

tests/arrow_schema_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//!
44
//! cargo t --test arrow_schema_tests --features=with-arrow
55
6-
use arrow::datatypes::{DataType, Field, Schema, TimeUnit};
76
use sea_orm::ArrowSchema;
7+
use sea_orm_arrow::arrow::datatypes::{DataType, Field, Schema, TimeUnit};
88

99
// ---------------------------------------------------------------------------
1010
// Entities using #[sea_orm::model] (2.0 format, arrow_schema flag)

tests/arrow_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#![cfg(feature = "with-arrow")]
22
//! cargo t --test arrow_tests --features=with-arrow
33
//! cargo t --test arrow_tests --features=with-arrow,with-bigdecimal
4-
use arrow::array::*;
5-
use arrow::datatypes::{DataType, Field, Schema, TimeUnit};
64
use sea_orm::entity::prelude::*;
75
use sea_orm::{ActiveValue::NotSet, ArrowSchema, Set, arrow};
6+
use sea_orm_arrow::arrow::array::*;
7+
use sea_orm_arrow::arrow::datatypes::{DataType, Field, Schema, TimeUnit};
88
use std::sync::Arc;
99

1010
/// Test entity with all supported primitive types
@@ -1469,7 +1469,7 @@ mod bigdecimal_tests {
14691469

14701470
#[test]
14711471
fn test_from_arrow_decimal256_bigdecimal() {
1472-
use arrow::datatypes::i256;
1472+
use sea_orm_arrow::arrow::datatypes::i256;
14731473

14741474
let schema = Arc::new(Schema::new(vec![
14751475
Field::new("id", DataType::Int32, false),

0 commit comments

Comments
 (0)