Skip to content

Commit c0c7385

Browse files
Clippy
1 parent 691945d commit c0c7385

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

etl-destinations/src/delta/schema.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ use deltalake::arrow::datatypes::{
1414
use deltalake::arrow::error::ArrowError;
1515
use deltalake::arrow::record_batch::RecordBatch;
1616
use etl::types::{
17-
ArrayCell as PGArrayCell, Cell as PGCell, TableRow as PGTableRow, TableSchema as PGTableSchema,
18-
Type as PGType,
17+
ArrayCell as PGArrayCell, Cell as PGCell, DATE_FORMAT, TIME_FORMAT, TIMESTAMP_FORMAT,
18+
TIMESTAMPTZ_FORMAT_HH_MM, TableRow as PGTableRow, TableSchema as PGTableSchema, Type as PGType,
1919
};
20-
use etl_postgres::time::{DATE_FORMAT, TIME_FORMAT, TIMESTAMP_FORMAT, TIMESTAMPTZ_FORMAT_HH_MM};
2120
use std::sync::Arc;
2221

2322
/// Converts TableRows to Arrow RecordBatch for Delta Lake writes
@@ -1129,7 +1128,8 @@ mod tests {
11291128
PGCell::I32(1234567),
11301129
PGCell::I64(123456789012345),
11311130
PGCell::F32(3.14159),
1132-
PGCell::F64(2.71828182845904),
1131+
PGCell::F64(std::f64::consts::PI),
1132+
PGCell::F64(std::f64::consts::E),
11331133
PGCell::String("hello world".to_string()),
11341134
PGCell::Date(date),
11351135
PGCell::Time(time),

0 commit comments

Comments
 (0)