zanmato1984 commented on issue #41149:
URL: https://github.com/apache/arrow/issues/41149#issuecomment-2104218358
Also reproduced the sympton in this issue using C++, about the same chance
as above:
```
TEST(AsofJoinTest, Flaky2) {
std::vector<TypeHolder> left_types = {int64()};
auto left_batch = ExecBatchFromJSON(left_types, R"([[1], [2], [3]])");
std::vector<TypeHolder> right_types = {utf8(), int64()};
auto right_batch = ExecBatchFromJSON(right_types, R"([["Z", 2], ["B", 3],
["A", 4]])");
Declaration left{"exec_batch_source",
ExecBatchSourceNodeOptions(schema({field("on", int64())}),
{std::move(left_batch)})};
Declaration right{
"exec_batch_source",
ExecBatchSourceNodeOptions(schema({field("colVals", utf8()),
field("on", int64())}),
{std::move(right_batch)})};
AsofJoinNodeOptions asof_join_opts({{{"on"}, {}}, {{"on"}, {}}}, 1);
Declaration asof_join{"asofjoin", {left, right}, asof_join_opts};
ASSERT_OK_AND_ASSIGN(auto result, DeclarationToExecBatches(asof_join));
std::vector<TypeHolder> exp_types = {int64(), utf8()};
auto exp_batch = ExecBatchFromJSON(exp_types, R"([[1, "Z"], [2, "Z"], [3,
"B"]])");
AssertExecBatchesEqualIgnoringOrder(result.schema, {exp_batch},
result.batches);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]