Skip to content

Commit

Permalink
change some test case
Browse files Browse the repository at this point in the history
  • Loading branch information
liukun4515 committed Sep 30, 2022
1 parent 5c6c334 commit 0a2e478
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datafusion/optimizer/src/unwrap_cast_in_comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ mod tests {
lit(ScalarValue::Decimal128(Some(12000), 19, 3)),
lit(ScalarValue::Decimal128(Some(24000), 19, 3)),
lit(ScalarValue::Decimal128(Some(1280), 19, 3)),
lit(ScalarValue::Decimal128(Some(1280), 19, 3)),
lit(ScalarValue::Decimal128(Some(1240), 19, 3)),
],
false,
);
Expand All @@ -596,7 +596,7 @@ mod tests {
lit(ScalarValue::Decimal128(Some(1200), 18, 2)),
lit(ScalarValue::Decimal128(Some(2400), 18, 2)),
lit(ScalarValue::Decimal128(Some(128), 18, 2)),
lit(ScalarValue::Decimal128(Some(128), 18, 2)),
lit(ScalarValue::Decimal128(Some(124), 18, 2)),
],
false,
);
Expand All @@ -605,14 +605,14 @@ mod tests {
// cast(INT32(12), INT64) IN (.....)
let expr_lt = cast(lit(ScalarValue::Int32(Some(12))), DataType::Int64).in_list(
vec![
lit(ScalarValue::Int64(Some(12))),
lit(ScalarValue::Int64(Some(13))),
lit(ScalarValue::Int64(Some(12))),
],
false,
);
let expected = lit(ScalarValue::Int32(Some(12))).in_list(
vec![
lit(ScalarValue::Int32(Some(12))),
lit(ScalarValue::Int32(Some(13))),
lit(ScalarValue::Int32(Some(12))),
],
false,
Expand Down

0 comments on commit 0a2e478

Please sign in to comment.