Skip to content

Commit 3681447

Browse files
committed
fmt
1 parent 9e53160 commit 3681447

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

rust/cubesql/cubesql/src/sql/dataframe.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -699,16 +699,12 @@ pub fn batches_to_dataframe(
699699
mod tests {
700700
use std::sync::Arc;
701701

702-
use datafusion::{
703-
arrow::{array::PrimitiveArray, datatypes::TimestampMicrosecondType},
704-
scalar::ScalarValue::TimestampMicrosecond,
705-
};
702+
use datafusion::arrow::{array::PrimitiveArray, datatypes::TimestampMicrosecondType};
706703
use itertools::Itertools;
707704

708705
use super::*;
709706
use crate::compile::arrow::{
710-
datatypes::{ArrowPrimitiveType, Field, TimestampMillisecondType, TimestampNanosecondType},
711-
error::ArrowError,
707+
datatypes::{ArrowPrimitiveType, Field, TimestampNanosecondType},
712708
record_batch::RecordBatchOptions,
713709
};
714710

@@ -1029,11 +1025,11 @@ mod tests {
10291025
(TableValue::Boolean(a), TableValue::Boolean(b)) => a == b,
10301026
(TableValue::Float32(a), TableValue::Float32(b)) => a == b,
10311027
(TableValue::Float64(a), TableValue::Float64(b)) => a == b,
1032-
(TableValue::List(a), TableValue::List(b)) => panic!("unsupported"),
1028+
(TableValue::List(_), TableValue::List(_)) => panic!("unsupported"),
10331029
(TableValue::Decimal128(a), TableValue::Decimal128(b)) => a == b,
10341030
(TableValue::Date(a), TableValue::Date(b)) => a == b,
10351031
(TableValue::Timestamp(a), TableValue::Timestamp(b)) => a == b,
1036-
(TableValue::Interval(a), TableValue::Interval(b)) => panic!("unsupported"),
1032+
(TableValue::Interval(_), TableValue::Interval(_)) => panic!("unsupported"),
10371033
_ => false,
10381034
}
10391035
}

0 commit comments

Comments
 (0)