diff --git a/cpp/src/arrow/dataset/test_util_internal.h b/cpp/src/arrow/dataset/test_util_internal.h index a6bc7afb8ff..ee73ebc5a48 100644 --- a/cpp/src/arrow/dataset/test_util_internal.h +++ b/cpp/src/arrow/dataset/test_util_internal.h @@ -2140,8 +2140,8 @@ class WriteFileSystemDatasetMixin : public MakeFileSystemDatasetMixin { actual_struct = std::dynamic_pointer_cast(struct_array); } - auto expected_struct = arrow::ArrayFromJSON( - struct_(expected_physical_schema_->fields()), file_contents->second); + auto expected_struct = ArrayFromJSON(struct_(expected_physical_schema_->fields()), + file_contents->second); AssertArraysEqual(*expected_struct, *actual_struct, /*verbose=*/true); }