Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/CurtHagenlocher/arrow into …
Browse files Browse the repository at this point in the history
…StringView
  • Loading branch information
CurtHagenlocher committed Dec 21, 2023
2 parents e1f0316 + 2f9f892 commit 535ecac
Show file tree
Hide file tree
Showing 18 changed files with 477 additions and 361 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ if(ARROW_FILESYSTEM)
filesystem/util_internal.cc)

if(ARROW_AZURE)
list(APPEND ARROW_SRCS filesystem/azurefs.cc filesystem/azurefs_internal.cc)
set_source_files_properties(filesystem/azurefs.cc filesystem/azurefs_internal.cc
list(APPEND ARROW_SRCS filesystem/azurefs.cc)
set_source_files_properties(filesystem/azurefs.cc
PROPERTIES SKIP_PRECOMPILE_HEADERS ON
SKIP_UNITY_BUILD_INCLUSION ON)
endif()
Expand Down
6 changes: 2 additions & 4 deletions cpp/src/arrow/array/array_nested.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,8 @@ Result<std::shared_ptr<Array>> FlattenListViewArray(const ListViewArrayT& list_v
const auto* sizes = list_view_array.data()->template GetValues<offset_type>(2);

auto is_null_or_empty = [&](int64_t i) {
if constexpr (HasNulls) {
if (!bit_util::GetBit(validity, list_view_array_offset + i)) {
return true;
}
if (HasNulls && !bit_util::GetBit(validity, list_view_array_offset + i)) {
return true;
}
return sizes[i] == 0;
};
Expand Down
18 changes: 8 additions & 10 deletions cpp/src/arrow/compute/kernels/scalar_if_else_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2485,16 +2485,14 @@ TEST(TestCaseWhen, UnionBoolString) {
}
}

// FIXME(GH-15192): enabling this test produces test failures

// TEST(TestCaseWhen, UnionBoolStringRandom) {
// for (const auto& type : std::vector<std::shared_ptr<DataType>>{
// sparse_union({field("a", boolean()), field("b", utf8())}, {2, 7}),
// dense_union({field("a", boolean()), field("b", utf8())}, {2, 7})}) {
// ARROW_SCOPED_TRACE(type->ToString());
// TestCaseWhenRandom(type);
// }
// }
TEST(TestCaseWhen, UnionBoolStringRandom) {
for (const auto& type : std::vector<std::shared_ptr<DataType>>{
sparse_union({field("a", boolean()), field("b", utf8())}, {2, 7}),
dense_union({field("a", boolean()), field("b", utf8())}, {2, 7})}) {
ARROW_SCOPED_TRACE(type->ToString());
TestCaseWhenRandom(type);
}
}

TEST(TestCaseWhen, DispatchBest) {
CheckDispatchBest("case_when", {struct_({field("", boolean())}), int64(), int32()},
Expand Down
Loading

0 comments on commit 535ecac

Please sign in to comment.