From c83ea4b94148b3525b625e04414d9c7a8b5f3e39 Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Wed, 13 Jul 2022 22:53:36 +0800 Subject: [PATCH] test log Signed-off-by: Yuan Zhou --- .github/workflows/unittests.yml | 2 +- .../cpp/src/tests/arrow_compute_test_sort.cc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 1666bb791..2ff02d1b8 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -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 diff --git a/native-sql-engine/cpp/src/tests/arrow_compute_test_sort.cc b/native-sql-engine/cpp/src/tests/arrow_compute_test_sort.cc index df962f03f..ad35d4a80 100644 --- a/native-sql-engine/cpp/src/tests/arrow_compute_test_sort.cc +++ b/native-sql-engine/cpp/src/tests/arrow_compute_test_sort.cc @@ -1332,21 +1332,21 @@ TEST(TestArrowComputeSort, SortTestOneKeyStr) { std::shared_ptr sort_result_iterator_base; std::vector 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 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 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 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 input_data_string_5 = { @@ -1359,7 +1359,7 @@ TEST(TestArrowComputeSort, SortTestOneKeyStr) { std::shared_ptr expected_result; std::vector 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));