Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
test log
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Jul 14, 2022
1 parent dc93d7e commit c83ea4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
cmake .. -DNATIVE_AVX512=OFF -DBUILD_ARROW=0 -DTESTS=1
make
cd src
ctest -R
ctest -V
scala-unit-test-hadoop-2-7:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions native-sql-engine/cpp/src/tests/arrow_compute_test_sort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1332,21 +1332,21 @@ TEST(TestArrowComputeSort, SortTestOneKeyStr) {
std::shared_ptr<ResultIteratorBase> sort_result_iterator_base;
std::vector<std::string> input_data_string = {
R"(["b", "q", "s", "t", null, null, "a"])",
R"(["a", "c", "e", "f", "g", null, "h"])"};
R"(["a", "1", "e", "f", "g", null, "h"])"};
MakeInputBatch(input_data_string, sch, &input_batch);
input_batch_list.push_back(input_batch);
std::vector<std::string> input_data_string_2 = {
R"([null, "f", "q", "d", "r", null, "g"])",
R"(["a", "c", "e", "f", null, "j", "h"])"};
R"(["a", "c", "2", "f", null, "j", "h"])"};
MakeInputBatch(input_data_string_2, sch, &input_batch);
input_batch_list.push_back(input_batch);
std::vector<std::string> input_data_string_3 = {
R"(["p", "q", "o", "e", null, null, "l"])",
R"(["a", "c", "e", "f", "g","j", null])"};
R"(["a", "3", "e", "f", "g","j", null])"};
MakeInputBatch(input_data_string_3, sch, &input_batch);
input_batch_list.push_back(input_batch);
std::vector<std::string> input_data_string_4 = {
R"(["q", "w", "z", "x", "y", null, "u"])", R"(["a", "c", "e", "f", "g","j", "h"])"};
R"(["q", "w", "z", "x", "y", null, "u"])", R"(["4", "c", "e", "f", "g","j", "h"])"};
MakeInputBatch(input_data_string_4, sch, &input_batch);
input_batch_list.push_back(input_batch);
std::vector<std::string> input_data_string_5 = {
Expand All @@ -1359,7 +1359,7 @@ TEST(TestArrowComputeSort, SortTestOneKeyStr) {
std::shared_ptr<arrow::RecordBatch> expected_result;
std::vector<std::string> expected_result_string = {
R"(["a","a","b","b","c","d","d","e","f","g","l","o","p","q","q","q","q","r","s","t","u","w","x","y","z",null,null,null,null,null,null,null,null,null,null])",
R"(["h","a","a","e",null,"f","f","f","c","h",null,"e","a","c","e","c","a",null,"e","f","h","c","f","g","e","g",null,"a","j","g","j","j","g","j","h"])"};
R"(["h","a","a","e",null,"f","f","f","c","h",null,"e","a","1","2","3","4",null,"e","f","h","c","f","g","e","g",null,"a","j","g","j","j","g","j","h"])"};
MakeInputBatch(expected_result_string, sch, &expected_result);
for (auto batch : input_batch_list) {
ASSERT_NOT_OK(sort_expr->evaluate(batch, &dummy_result_batches));
Expand Down

0 comments on commit c83ea4b

Please sign in to comment.