js8544 commented on code in PR #36204:
URL: https://github.com/apache/arrow/pull/36204#discussion_r1245037302
##########
cpp/src/arrow/compute/kernels/scalar_set_lookup_test.cc:
##########
@@ -253,11 +268,11 @@ TEST_F(TestIsInKernel, TimeDuration) {
"[true, false, false, true, true]", /*skip_nulls=*/true);
}
- // Different units, invalid cast
- ASSERT_RAISES(Invalid, IsIn(ArrayFromJSON(duration(TimeUnit::SECOND), "[0,
1, 2]"),
- ArrayFromJSON(duration(TimeUnit::MILLI), "[0,
2]")));
+ // Different units, cast value_set to values
+ CheckIsIn(ArrayFromJSON(duration(TimeUnit::SECOND), "[0, 2]"),
+ ArrayFromJSON(duration(TimeUnit::MILLI), "[1, 2, 2000]"), "[false,
true]");
Review Comment:
Done
##########
cpp/src/arrow/compute/kernels/scalar_set_lookup_test.cc:
##########
@@ -253,11 +268,11 @@ TEST_F(TestIsInKernel, TimeDuration) {
"[true, false, false, true, true]", /*skip_nulls=*/true);
}
- // Different units, invalid cast
- ASSERT_RAISES(Invalid, IsIn(ArrayFromJSON(duration(TimeUnit::SECOND), "[0,
1, 2]"),
- ArrayFromJSON(duration(TimeUnit::MILLI), "[0,
2]")));
+ // Different units, cast value_set to values
Review Comment:
Comment updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]