Skip to content

Commit

Permalink
More comments on test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed May 13, 2024
1 parent 104024e commit 843216e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cpp/src/arrow/acero/asof_join_node_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,9 @@ TEST(AsofJoinTest, BackpressureWithBatchesGen) {
/*slow_r0=*/false);
}

TEST(AsofJoinTest, GH40675) {
// Reproduction of GH-40675: A logical race between Process() and Push() that can be more
// easily observed with single small batch.
TEST(AsofJoinTest, RhsEmptinessRace) {
auto left_batch = ExecBatchFromJSON(
{int64(), utf8()}, R"([[1, "a"], [1, "b"], [5, "a"], [6, "b"], [7, "f"]])");
auto right_batch = ExecBatchFromJSON(
Expand All @@ -1705,7 +1707,9 @@ TEST(AsofJoinTest, GH40675) {
AssertExecBatchesEqualIgnoringOrder(result.schema, {exp_batch}, result.batches);
}

TEST(AsofJoinTest, GH41149) {
// Reproduction of GH-41149: Another case of the same root cause as GH-40675, but with
// empty "by" columns.
TEST(AsofJoinTest, RhsEmptinessRaceEmptyBy) {
auto left_batch = ExecBatchFromJSON({int64()}, R"([[1], [2], [3]])");
auto right_batch =
ExecBatchFromJSON({utf8(), int64()}, R"([["Z", 2], ["B", 3], ["A", 4]])");
Expand Down

0 comments on commit 843216e

Please sign in to comment.