Skip to content

Commit c094f13

Browse files
committed
Remove explicit cast to timestamp from tests
1 parent 3668476 commit c094f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/integrations/datafusion/src/physical_plan/expr_to_predicate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ mod tests {
422422

423423
#[test]
424424
fn test_to_timestamp_comparison_creates_predicate() {
425-
let sql = "TO_TIMESTAMP(ts) >= timestamp '2023-01-05T00:00:00'";
425+
let sql = "ts >= timestamp '2023-01-05T00:00:00'";
426426
let predicate = convert_to_iceberg_predicate(sql).unwrap();
427427
let expected_predicate =
428428
Reference::new("ts").greater_than_or_equal_to(Datum::string("2023-01-05T00:00:00"));
@@ -431,7 +431,7 @@ mod tests {
431431

432432
#[test]
433433
fn test_to_timestamp_comparison_to_cast_creates_predicate() {
434-
let sql = "TO_TIMESTAMP(ts) >= CAST('2023-01-05T00:00:00' AS TIMESTAMP)";
434+
let sql = "ts >= CAST('2023-01-05T00:00:00' AS TIMESTAMP)";
435435
let predicate = convert_to_iceberg_predicate(sql).unwrap();
436436
let expected_predicate =
437437
Reference::new("ts").greater_than_or_equal_to(Datum::string("2023-01-05T00:00:00"));

0 commit comments

Comments
 (0)