Skip to content

Commit

Permalink
Update other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Aug 19, 2024
1 parent 230aeec commit ed2b222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/sql/tests/cases/plan_to_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,14 @@ fn sql_round_trip(query: &str, expect: &str) {
fn test_interval_lhs_eq() {
sql_round_trip(
"select interval '2 seconds' = interval '2 seconds'",
"SELECT (INTERVAL '0 YEARS 0 MONS 0 DAYS 0 HOURS 0 MINS 2.000000000 SECS' = INTERVAL '0 YEARS 0 MONS 0 DAYS 0 HOURS 0 MINS 2.000000000 SECS')",
"SELECT (INTERVAL '2.000000000 SECS' = INTERVAL '2.000000000 SECS')",
);
}

#[test]
fn test_interval_lhs_lt() {
sql_round_trip(
"select interval '2 seconds' < interval '2 seconds'",
"SELECT (INTERVAL '0 YEARS 0 MONS 0 DAYS 0 HOURS 0 MINS 2.000000000 SECS' < INTERVAL '0 YEARS 0 MONS 0 DAYS 0 HOURS 0 MINS 2.000000000 SECS')",
"SELECT (INTERVAL '2.000000000 SECS' < INTERVAL '2.000000000 SECS')",
);
}

0 comments on commit ed2b222

Please sign in to comment.