Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zenus committed May 25, 2024
1 parent 7c246f6 commit f1ca0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/expression/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl DataType {
ordered_float::OrderedFloat(f64::INFINITY),
))),
DataType::Number(NumberDataType::Int64) => {
Ok(Scalar::Number(NumberScalar::Int64(MAX.into())))
Ok(Scalar::Number(NumberScalar::Int64(i64::MAX)))
}
_ => Result::Err(format!(
"only support numeric types and time types, but got {:?}",
Expand Down Expand Up @@ -226,7 +226,7 @@ impl DataType {
ordered_float::OrderedFloat(f64::NEG_INFINITY),
))),
DataType::Number(NumberDataType::Int64) => {
Ok(Scalar::Number(NumberScalar::Int64((-MAX).into())))
Ok(Scalar::Number(NumberScalar::Int64(i64::MIN)))
}
_ => Result::Err(format!(
"only support numeric types and time types, but got {:?}",
Expand Down

0 comments on commit f1ca0c4

Please sign in to comment.