diff --git a/cpp/src/arrow/dataset/scanner_test.cc b/cpp/src/arrow/dataset/scanner_test.cc index 82b6b9ddb4254..ad6933e0ad358 100644 --- a/cpp/src/arrow/dataset/scanner_test.cc +++ b/cpp/src/arrow/dataset/scanner_test.cc @@ -2557,7 +2557,7 @@ TEST(ScanNode, MaterializationOfNestedVirtualColumn) { auto c_data = batch.values[2].array()->Copy(); c_data->child_data.insert(c_data->child_data.begin(), nulls->data()); c_data->type = nested.dataset->schema()->field(2)->type(); - auto c_array = std::make_shared(c_data); + auto c_array = std::make_shared(c_data); batch.values[2] = c_array; }