-
Notifications
You must be signed in to change notification settings - Fork 915
/
column_utilities_tests.cpp
463 lines (367 loc) · 18.7 KB
/
column_utilities_tests.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
/*
* Copyright (c) 2019-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cudf/copying.hpp>
#include <cudf/detail/iterator.cuh>
#include <cudf/strings/strings_column_view.hpp>
#include <cudf_test/base_fixture.hpp>
#include <cudf_test/column_utilities.hpp>
#include <cudf_test/column_wrapper.hpp>
#include <cudf_test/cudf_gtest.hpp>
#include <cudf_test/type_lists.hpp>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <type_traits>
template <typename T>
struct ColumnUtilitiesTest : public cudf::test::BaseFixture {
cudf::test::UniformRandomGenerator<cudf::size_type> random;
ColumnUtilitiesTest() : random{1000, 5000} {}
auto size() { return random.generate(); }
auto data_type() { return cudf::data_type{cudf::type_to_id<T>()}; }
};
template <typename T>
struct ColumnUtilitiesTestIntegral : public cudf::test::BaseFixture {};
template <typename T>
struct ColumnUtilitiesTestFloatingPoint : public cudf::test::BaseFixture {};
template <typename T>
struct ColumnUtilitiesTestFixedPoint : public cudf::test::BaseFixture {};
TYPED_TEST_SUITE(ColumnUtilitiesTest, cudf::test::FixedWidthTypes);
TYPED_TEST_SUITE(ColumnUtilitiesTestIntegral, cudf::test::IntegralTypes);
TYPED_TEST_SUITE(ColumnUtilitiesTestFloatingPoint, cudf::test::FloatingPointTypes);
TYPED_TEST_SUITE(ColumnUtilitiesTestFixedPoint, cudf::test::FixedPointTypes);
TYPED_TEST(ColumnUtilitiesTest, NonNullableToHost)
{
auto sequence = cudf::detail::make_counting_transform_iterator(
0, [](auto i) { return cudf::test::make_type_param_scalar<TypeParam>(i); });
auto size = this->size();
std::vector<TypeParam> data(sequence, sequence + size);
cudf::test::fixed_width_column_wrapper<TypeParam> col(data.begin(), data.end());
auto host_data = cudf::test::to_host<TypeParam>(col);
EXPECT_TRUE(std::equal(data.begin(), data.end(), host_data.first.begin()));
}
TYPED_TEST(ColumnUtilitiesTest, NonNullableToHostWithOffset)
{
auto sequence = cudf::detail::make_counting_transform_iterator(
0, [](auto i) { return cudf::test::make_type_param_scalar<TypeParam>(i); });
auto const size = this->size();
auto const split = 2;
auto data = std::vector<TypeParam>(sequence, sequence + size);
auto expected_data = std::vector<TypeParam>(sequence + split, sequence + size);
auto col = cudf::test::fixed_width_column_wrapper<TypeParam>(data.begin(), data.end());
auto const splits = std::vector<cudf::size_type>{split};
auto result = cudf::split(col, splits);
auto host_data = cudf::test::to_host<TypeParam>(result.back());
EXPECT_TRUE(std::equal(expected_data.begin(), expected_data.end(), host_data.first.begin()));
}
TYPED_TEST(ColumnUtilitiesTest, NullableToHostWithOffset)
{
auto sequence = cudf::detail::make_counting_transform_iterator(
0, [](auto i) { return cudf::test::make_type_param_scalar<TypeParam>(i); });
auto split = 2;
auto size = this->size();
auto valid = cudf::detail::make_counting_transform_iterator(
0, [&split](auto i) { return i <= 10 and i > split; });
std::vector<TypeParam> data(sequence, sequence + size);
std::vector<TypeParam> expected_data(sequence + split, sequence + size);
cudf::test::fixed_width_column_wrapper<TypeParam> col(data.begin(), data.end(), valid);
std::vector<cudf::size_type> splits{split};
std::vector<cudf::column_view> result = cudf::split(col, splits);
auto host_data = cudf::test::to_host<TypeParam>(result.back());
EXPECT_TRUE(std::equal(expected_data.begin(), expected_data.end(), host_data.first.begin()));
auto masks = std::get<0>(cudf::test::detail::make_null_mask_vector(valid + split, valid + size));
EXPECT_TRUE(cudf::test::validate_host_masks(masks, host_data.second, expected_data.size()));
}
TYPED_TEST(ColumnUtilitiesTest, NullableToHostAllValid)
{
auto sequence = cudf::detail::make_counting_transform_iterator(
0, [](auto i) { return cudf::test::make_type_param_scalar<TypeParam>(i); });
auto all_valid = thrust::make_constant_iterator<bool>(true);
auto size = this->size();
std::vector<TypeParam> data(sequence, sequence + size);
cudf::test::fixed_width_column_wrapper<TypeParam> col(data.begin(), data.end(), all_valid);
auto host_data = cudf::test::to_host<TypeParam>(col);
EXPECT_TRUE(std::equal(data.begin(), data.end(), host_data.first.begin()));
auto masks = std::get<0>(cudf::test::detail::make_null_mask_vector(all_valid, all_valid + size));
EXPECT_TRUE(cudf::test::validate_host_masks(masks, host_data.second, size));
}
struct ColumnUtilitiesEquivalenceTest : public cudf::test::BaseFixture {};
TEST_F(ColumnUtilitiesEquivalenceTest, DoubleTest)
{
cudf::test::fixed_width_column_wrapper<double> col1{10. / 3, 22. / 7};
cudf::test::fixed_width_column_wrapper<double> col2{31. / 3 - 21. / 3, 19. / 7 + 3. / 7};
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(col1, col2);
}
TEST_F(ColumnUtilitiesEquivalenceTest, NullabilityTest)
{
auto all_valid = cudf::detail::make_counting_transform_iterator(0, [](auto i) { return true; });
cudf::test::fixed_width_column_wrapper<double> col1{1, 2, 3};
cudf::test::fixed_width_column_wrapper<double> col2({1, 2, 3}, all_valid);
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(col1, col2);
}
struct ColumnUtilitiesStringsTest : public cudf::test::BaseFixture {};
TEST_F(ColumnUtilitiesStringsTest, StringsToHost)
{
std::vector<char const*> h_strings{"eee", "bb", nullptr, "", "aa", "bbb", "ééé"};
cudf::test::strings_column_wrapper strings(
h_strings.begin(),
h_strings.end(),
thrust::make_transform_iterator(h_strings.begin(), [](auto str) { return str != nullptr; }));
auto host_data = cudf::test::to_host<std::string>(strings);
auto result_itr = host_data.first.begin();
for (auto itr = h_strings.begin(); itr != h_strings.end(); ++itr, ++result_itr) {
if (*itr) { EXPECT_TRUE((*result_itr) == (*itr)); }
}
}
TEST_F(ColumnUtilitiesStringsTest, StringsToHostAllNulls)
{
std::vector<char const*> h_strings{nullptr, nullptr, nullptr};
cudf::test::strings_column_wrapper strings(
h_strings.begin(),
h_strings.end(),
thrust::make_transform_iterator(h_strings.begin(), [](auto str) { return str != nullptr; }));
auto host_data = cudf::test::to_host<std::string>(strings);
auto results = host_data.first;
EXPECT_EQ(std::size_t{3}, host_data.first.size());
EXPECT_TRUE(std::all_of(results.begin(), results.end(), [](auto s) { return s.empty(); }));
}
TYPED_TEST(ColumnUtilitiesTestFixedPoint, NonNullableToHost)
{
using namespace numeric;
using decimalXX = TypeParam;
using rep = cudf::device_storage_type_t<decimalXX>;
auto const scale = scale_type{-2};
auto to_fp = [&](auto i) { return decimalXX{i, scale}; };
auto to_rep = [](auto i) { return i * 100; };
auto fps = cudf::detail::make_counting_transform_iterator(0, to_fp);
auto reps = cudf::detail::make_counting_transform_iterator(0, to_rep);
auto const size = 1000;
auto const expected = std::vector<decimalXX>(fps, fps + size);
auto const col = cudf::test::fixed_point_column_wrapper<rep>(reps, reps + size, scale);
auto const host_data = cudf::test::to_host<decimalXX>(col);
EXPECT_TRUE(std::equal(expected.begin(), expected.end(), host_data.first.begin()));
}
TYPED_TEST(ColumnUtilitiesTestFixedPoint, NonNullableToHostWithOffset)
{
using namespace numeric;
using decimalXX = TypeParam;
using rep = cudf::device_storage_type_t<decimalXX>;
auto const scale = scale_type{-2};
auto to_fp = [&](auto i) { return decimalXX{i, scale}; };
auto to_rep = [](auto i) { return i * 100; };
auto fps = cudf::detail::make_counting_transform_iterator(0, to_fp);
auto reps = cudf::detail::make_counting_transform_iterator(0, to_rep);
auto const size = 1000;
auto const split = cudf::size_type{2};
auto const expected = std::vector<decimalXX>(fps + split, fps + size);
auto const col = cudf::test::fixed_point_column_wrapper<rep>(reps, reps + size, scale);
auto const splits = std::vector<cudf::size_type>{split};
auto result = cudf::split(col, splits);
auto host_data = cudf::test::to_host<decimalXX>(result.back());
EXPECT_TRUE(std::equal(expected.begin(), expected.end(), host_data.first.begin()));
}
struct ColumnUtilitiesListsTest : public cudf::test::BaseFixture {};
TEST_F(ColumnUtilitiesListsTest, Equivalence)
{
// list<int>, nullable vs. non-nullable
{
auto all_valid = cudf::detail::make_counting_transform_iterator(0, [](auto i) { return true; });
cudf::test::lists_column_wrapper<int> a{{1, 2, 3}, {5, 6}, {8, 9}, {10}, {14, 15}};
cudf::test::lists_column_wrapper<int> b{{{1, 2, 3}, {5, 6}, {8, 9}, {10}, {14, 15}}, all_valid};
// properties
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUIVALENT(a, b);
EXPECT_FALSE(cudf::test::detail::expect_column_properties_equal(
a, b, cudf::test::debug_output_level::QUIET));
// values
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(a, b);
EXPECT_FALSE(
cudf::test::detail::expect_columns_equal(a, b, cudf::test::debug_output_level::QUIET));
}
// list<list<int>>, nullable vs. non-nullable
{
auto all_valid = cudf::detail::make_counting_transform_iterator(0, [](auto i) { return true; });
cudf::test::lists_column_wrapper<int> a{{{1, 2, 3}, {5, 6}}, {{8, 9}, {10}}, {{14, 15}}};
cudf::test::lists_column_wrapper<int> b{{{{1, 2, 3}, {5, 6}}, {{8, 9}, {10}}, {{14, 15}}},
all_valid};
// properties
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUIVALENT(a, b);
EXPECT_FALSE(cudf::test::detail::expect_column_properties_equal(
a, b, cudf::test::debug_output_level::QUIET));
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(a, b);
EXPECT_FALSE(
cudf::test::detail::expect_columns_equal(a, b, cudf::test::debug_output_level::QUIET));
}
}
TEST_F(ColumnUtilitiesListsTest, DifferingRowCounts)
{
cudf::test::fixed_width_column_wrapper<int> a{1, 1, 1, 1};
cudf::test::fixed_width_column_wrapper<int> b{1, 1, 1, 1, 1};
EXPECT_FALSE(
cudf::test::detail::expect_columns_equal(a, b, cudf::test::debug_output_level::QUIET));
EXPECT_FALSE(cudf::test::detail::expect_column_properties_equal(
a, b, cudf::test::debug_output_level::QUIET));
EXPECT_FALSE(
cudf::test::detail::expect_columns_equivalent(a, b, cudf::test::debug_output_level::QUIET));
EXPECT_FALSE(cudf::test::detail::expect_column_properties_equivalent(
a, b, cudf::test::debug_output_level::QUIET));
}
TEST_F(ColumnUtilitiesListsTest, UnsanitaryLists)
{
// unsanitary
//
// List<int32_t>:
// Length : 1
// Offsets : 0, 3
// Null count: 1
// 0
// 0, 1, 2
std::vector<std::unique_ptr<cudf::column>> children;
children.emplace_back(
std::move(cudf::test::fixed_width_column_wrapper<cudf::size_type>{0, 3}.release()));
children.emplace_back(std::move(cudf::test::fixed_width_column_wrapper<int>{0, 1, 2}.release()));
auto l0 = std::make_unique<cudf::column>(cudf::data_type{cudf::type_id::LIST},
1,
rmm::device_buffer{},
cudf::create_null_mask(1, cudf::mask_state::ALL_NULL),
1,
std::move(children));
// sanitary
//
// List<int32_t>:
// Length : 1
// Offsets : 0, 0
// Null count: 1
// 0
auto l1 = cudf::test::lists_column_wrapper<int>::make_one_empty_row_column(false);
// equivalent, but not equal
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(*l0, l1);
EXPECT_FALSE(
cudf::test::detail::expect_columns_equal(*l0, l1, cudf::test::debug_output_level::QUIET));
}
TEST_F(ColumnUtilitiesListsTest, DifferentPhysicalStructureBeforeConstruction)
{
// list<int>
{
std::vector<bool> valids = {0, 0, 1, 0, 1, 0, 0};
cudf::test::fixed_width_column_wrapper<int> c0_offsets{0, 3, 6, 8, 11, 14, 16, 19};
cudf::test::fixed_width_column_wrapper<int> c0_data{
1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7};
auto [null_mask, null_count] = cudf::test::detail::make_null_mask(valids.begin(), valids.end());
auto c0 = make_lists_column(
7, c0_offsets.release(), c0_data.release(), null_count, std::move(null_mask));
cudf::test::fixed_width_column_wrapper<int> c1_offsets{0, 0, 0, 2, 2, 5, 5, 5};
cudf::test::fixed_width_column_wrapper<int> c1_data{3, 3, 5, 5, 5};
auto c1 = make_lists_column(
7,
c1_offsets.release(),
c1_data.release(),
null_count,
std::get<0>(cudf::test::detail::make_null_mask(valids.begin(), valids.end())));
// properties
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUAL(*c0, *c1);
// values
CUDF_TEST_EXPECT_COLUMNS_EQUAL(*c0, *c1);
}
// list<list<struct<int, float>>>
{
std::vector<bool> level1_valids = {0, 0, 1, 0, 1, 0, 0};
cudf::test::fixed_width_column_wrapper<int> c0_l1_offsets{0, 1, 2, 4, 4, 7, 7, 7};
cudf::test::fixed_width_column_wrapper<int> c0_l2_offsets{0, 1, 2, 5, 6, 7, 10, 14};
cudf::test::fixed_width_column_wrapper<int> c0_l3_ints{
1, 1, -1, -2, -3, 1, 1, -4, -5, -6, -7, -8, -9, -10};
cudf::test::fixed_width_column_wrapper<float> c0_l3_floats{
1, 1, 10, 20, 30, 1, 1, 40, 50, 60, 70, 80, 90, 100};
cudf::test::structs_column_wrapper c0_l2_data({c0_l3_ints, c0_l3_floats});
std::vector<bool> c0_l2_valids = {1, 1, 1, 0, 0, 1, 1};
auto [null_mask, null_count] =
cudf::test::detail::make_null_mask(c0_l2_valids.begin(), c0_l2_valids.end());
auto c0_l2 = make_lists_column(
7, c0_l2_offsets.release(), c0_l2_data.release(), null_count, std::move(null_mask));
std::tie(null_mask, null_count) =
cudf::test::detail::make_null_mask(level1_valids.begin(), level1_valids.end());
auto c0 = make_lists_column(
7, c0_l1_offsets.release(), std::move(c0_l2), null_count, std::move(null_mask));
cudf::test::fixed_width_column_wrapper<int> c1_l1_offsets{0, 0, 0, 2, 2, 5, 5, 5};
cudf::test::fixed_width_column_wrapper<int> c1_l2_offsets{0, 3, 3, 3, 6, 10};
cudf::test::fixed_width_column_wrapper<int> c1_l3_ints{-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};
cudf::test::fixed_width_column_wrapper<float> c1_l3_floats{
10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
cudf::test::structs_column_wrapper c1_l2_data({c1_l3_ints, c1_l3_floats});
std::vector<bool> c1_l2_valids = {1, 0, 0, 1, 1};
std::tie(null_mask, null_count) =
cudf::test::detail::make_null_mask(c1_l2_valids.begin(), c1_l2_valids.end());
auto c1_l2 = make_lists_column(
5, c1_l2_offsets.release(), c1_l2_data.release(), null_count, std::move(null_mask));
std::tie(null_mask, null_count) =
cudf::test::detail::make_null_mask(level1_valids.begin(), level1_valids.end());
auto c1 = make_lists_column(
7, c1_l1_offsets.release(), std::move(c1_l2), null_count, std::move(null_mask));
// properties
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUAL(*c0, *c1);
// values
CUDF_TEST_EXPECT_COLUMNS_EQUAL(*c0, *c1);
}
}
struct ColumnUtilitiesStructsTest : public cudf::test::BaseFixture {};
TEST_F(ColumnUtilitiesStructsTest, Properties)
{
cudf::test::strings_column_wrapper s0_scol0{"mno", "jkl", "ghi", "def", "abc"};
cudf::test::fixed_width_column_wrapper<float> s0_scol1{5, 4, 3, 2, 1};
cudf::test::strings_column_wrapper s0_sscol0{"5555", "4444", "333", "22", "1"};
cudf::test::fixed_width_column_wrapper<float> s0_sscol1{50, 40, 30, 20, 10};
cudf::test::lists_column_wrapper<int> s0_sscol2{{1, 2}, {3, 4}, {5}, {6, 7, 8}, {12, 12}};
cudf::test::structs_column_wrapper s0_scol2({s0_sscol0, s0_sscol1, s0_sscol2});
cudf::test::structs_column_wrapper s_col0({s0_scol0, s0_scol1, s0_scol2});
auto all_valid = thrust::make_constant_iterator<bool>(true);
cudf::test::strings_column_wrapper s1_scol0{"mno", "jkl", "ghi", "def", "abc"};
cudf::test::fixed_width_column_wrapper<float> s1_scol1{5, 4, 3, 2, 1};
cudf::test::strings_column_wrapper s1_sscol0{"5555", "4444", "333", "22", "1"};
cudf::test::fixed_width_column_wrapper<float> s1_sscol1{50, 40, 30, 20, 10};
cudf::test::lists_column_wrapper<int> s1_sscol2{{{1, 2}, {3, 4}, {5}, {6, 7, 8}, {12, 12}},
all_valid};
cudf::test::structs_column_wrapper s1_scol2({s1_sscol0, s1_sscol1, s1_sscol2});
cudf::test::structs_column_wrapper s_col1({s1_scol0, s1_scol1, s1_scol2});
// equivalent, but not equal
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUIVALENT(s_col0, s_col1);
EXPECT_FALSE(cudf::test::detail::expect_column_properties_equal(
s_col0, s_col1, cudf::test::debug_output_level::QUIET));
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUAL(s_col0, s_col0);
CUDF_TEST_EXPECT_COLUMN_PROPERTIES_EQUAL(s_col1, s_col1);
}
TEST_F(ColumnUtilitiesStructsTest, Values)
{
cudf::test::strings_column_wrapper s0_scol0{"mno", "jkl", "ghi", "def", "abc"};
cudf::test::fixed_width_column_wrapper<float> s0_scol1{5, 4, 3, 2, 1};
cudf::test::strings_column_wrapper s0_sscol0{"5555", "4444", "333", "22", "1"};
cudf::test::fixed_width_column_wrapper<float> s0_sscol1{50, 40, 30, 20, 10};
cudf::test::lists_column_wrapper<int> s0_sscol2{{1, 2}, {3, 4}, {5}, {6, 7, 8}, {12, 12}};
cudf::test::structs_column_wrapper s0_scol2({s0_sscol0, s0_sscol1, s0_sscol2});
cudf::test::structs_column_wrapper s_col0({s0_scol0, s0_scol1, s0_scol2});
auto all_valid = thrust::make_constant_iterator<bool>(true);
cudf::test::strings_column_wrapper s1_scol0{"mno", "jkl", "ghi", "def", "abc"};
cudf::test::fixed_width_column_wrapper<float> s1_scol1{5, 4, 3, 2, 1};
cudf::test::strings_column_wrapper s1_sscol0{"5555", "4444", "333", "22", "1"};
cudf::test::fixed_width_column_wrapper<float> s1_sscol1{50, 40, 30, 20, 10};
cudf::test::lists_column_wrapper<int> s1_sscol2{{{1, 2}, {3, 4}, {5}, {6, 7, 8}, {12, 12}},
all_valid};
cudf::test::structs_column_wrapper s1_scol2({s1_sscol0, s1_sscol1, s1_sscol2});
cudf::test::structs_column_wrapper s_col1({s1_scol0, s1_scol1, s1_scol2});
// equivalent, but not equal
CUDF_TEST_EXPECT_COLUMNS_EQUIVALENT(s_col0, s_col1);
EXPECT_FALSE(cudf::test::detail::expect_columns_equal(
s_col0, s_col1, cudf::test::debug_output_level::QUIET));
CUDF_TEST_EXPECT_COLUMNS_EQUAL(s_col0, s_col0);
CUDF_TEST_EXPECT_COLUMNS_EQUAL(s_col1, s_col1);
}
CUDF_TEST_PROGRAM_MAIN()