Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Feb 19, 2024
1 parent d5c9d05 commit 0fed6d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/expr/impl/src/scalar/make_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ mod tests {
use chrono::{NaiveDate, NaiveDateTime, NaiveTime};
use risingwave_common::types::{Date, Timestamp};

/// This test is to testify that our `Date` expressess a year `-X` as `X+1 BC`, while `Timestamp` expresses it as `-X`.
/// Can be removed if we change the `ToText` implementation of `Date` or `Timestamp`.
#[test]
fn test_naive_date_and_time() {
let year = -1973;
Expand All @@ -154,7 +152,7 @@ mod tests {
let date_time = Timestamp(NaiveDateTime::new(naive_date, naive_time));
assert_eq!(
date_time.to_string(),
String::from("-1973-02-02 12:34:56.789")
String::from("1974-02-02 12:34:56.789 BC")
);
}
}

0 comments on commit 0fed6d0

Please sign in to comment.