Skip to content

Commit

Permalink
Remove legacy code for happy case
Browse files Browse the repository at this point in the history
  • Loading branch information
llama90 committed Dec 3, 2023
1 parent 373bf10 commit 393021d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/src/arrow/dataset/partition_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "arrow/compute/api_vector.h"
#include "arrow/dataset/dataset.h"
#include "arrow/dataset/file_ipc.h"
#include "arrow/compute/cast.h"
#include "arrow/dataset/test_util_internal.h"
#include "arrow/filesystem/path_util.h"
#include "arrow/status.h"
Expand All @@ -40,6 +41,8 @@

namespace arrow {

using compute::Cast;

using internal::checked_pointer_cast;

namespace dataset {
Expand Down Expand Up @@ -335,7 +338,7 @@ TEST_F(TestPartitioning, DirectoryPartitioningWithTemporal) {
partitioning_ = std::make_shared<DirectoryPartitioning>(
schema({field("year", int32()), field("month", int8()), field("day", temporal)}));

ASSERT_OK_AND_ASSIGN(auto day, StringScalar("2020-06-08").CastTo(temporal));
ASSERT_OK_AND_ASSIGN(auto day, Cast(StringScalar("2020-06-08"), temporal));
AssertParse("/2020/06/2020-06-08/",
and_({equal(field_ref("year"), literal(2020)),
equal(field_ref("month"), literal<int8_t>(6)),
Expand Down

0 comments on commit 393021d

Please sign in to comment.