Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

fix: remove redundant println! #166

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions icelake/src/types/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2201,8 +2201,6 @@ mod test {
record.into()
};

println!("{:#?}", value);
println!("{:#?}", expect_value);
assert_eq!(value, expect_value);
}

Expand Down
1 change: 0 additions & 1 deletion icelake/src/types/on_disk/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ mod tests {
assert_eq!(expected_schema, schema);

let serialized_json_schema = serialize_schema(&expected_schema).unwrap();
println!("{serialized_json_schema}");

assert_eq!(
expected_schema,
Expand Down
16 changes: 3 additions & 13 deletions icelake/src/types/transform/temporal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,32 +131,22 @@ impl TransformFunction for Hour {
.as_any()
.downcast_ref::<TimestampSecondArray>()
.unwrap()
.unary(|v| -> i32 {
println!("second: {}", v);
(v as f64 * HOUR_PER_SECOND) as i32
}),
.unary(|v| -> i32 { (v as f64 * HOUR_PER_SECOND) as i32 }),
datatypes::TimeUnit::Millisecond => input
.as_any()
.downcast_ref::<TimestampMillisecondArray>()
.unwrap()
.unary(|v| -> i32 {
println!("mill: {}", v);
(v as f64 * HOUR_PER_SECOND / 1000.0) as i32
}),
.unary(|v| -> i32 { (v as f64 * HOUR_PER_SECOND / 1000.0) as i32 }),
datatypes::TimeUnit::Microsecond => input
.as_any()
.downcast_ref::<TimestampMicrosecondArray>()
.unwrap()
.unary(|v| -> i32 {
println!("micro: {}", v);
(v as f64 * HOUR_PER_SECOND / 1000.0 / 1000.0) as i32
}),
.unary(|v| -> i32 { (v as f64 * HOUR_PER_SECOND / 1000.0 / 1000.0) as i32 }),
datatypes::TimeUnit::Nanosecond => input
.as_any()
.downcast_ref::<TimestampNanosecondArray>()
.unwrap()
.unary(|v| -> i32 {
println!("nano: {}", v);
(v as f64 * HOUR_PER_SECOND / 1000.0 / 1000.0 / 1000.0) as i32
}),
},
Expand Down