Make mvcc happy

This commit is contained in:
François Saint-Jacques committed 2019-06-05 07:46:25 -04:00
1 parent 56e467725e
commit c427313e86
1 file changed
+5 -3
+5 -3
View File
@@ -346,7 +346,8 @@ TYPED_TEST(TestNumericCompareKernel, RandomCompareArrayScalar) {
for (size_t i = 3; i < 13; i++) {
for (auto null_probability : {0.0, 0.01, 0.1, 0.25, 0.5, 1.0}) {
for (auto op : {EQUAL, NOT_EQUAL, GREATER, LESS_EQUAL}) {
auto array = Datum(rand.Numeric<TypeParam>(1L << i, 0, 100, null_probability));
const int64_t length = static_cast<int64_t>(1UL << i);
auto array = Datum(rand.Numeric<TypeParam>(length, 0, 100, null_probability));
auto fifty = Datum(std::make_shared<ScalarType>(CType(50)));
auto options = CompareOptions(op);
ValidateCompare<TypeParam>(&this->ctx_, options, array, fifty);
@@ -376,8 +377,9 @@ TYPED_TEST(TestNumericCompareKernel, RandomCompareArrayArray) {
for (size_t i = 3; i < 5; i++) {
for (auto null_probability : {0.0, 0.01, 0.1, 0.25, 0.5, 1.0}) {
for (auto op : {EQUAL, NOT_EQUAL, GREATER, LESS_EQUAL}) {
auto lhs = Datum(rand.Numeric<TypeParam>(1L << i, 0, 100, null_probability));
auto rhs = Datum(rand.Numeric<TypeParam>(1L << i, 0, 100, null_probability));
const int64_t length = static_cast<int64_t>(1UL << i);
auto lhs = Datum(rand.Numeric<TypeParam>(length << i, 0, 100, null_probability));
auto rhs = Datum(rand.Numeric<TypeParam>(length << i, 0, 100, null_probability));
auto options = CompareOptions(op);
ValidateCompare<TypeParam>(&this->ctx_, options, lhs, rhs);
}