Skip to content

Commit

Permalink
ARROW-17696: [C++] arrow-compute-asof-join-node-test inordinately slow (
Browse files Browse the repository at this point in the history
apache#14190)

See https://issues.apache.org/jira/browse/ARROW-17696

Authored-by: Yaron Gvili <rtpsw@hotmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
  • Loading branch information
rtpsw authored and fatemehp committed Oct 17, 2022
1 parent d6de13e commit 2bb3a58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/src/arrow/compute/exec/asof_join_node_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ struct BasicTest {
std::uniform_int_distribution<size_t> r0_distribution(0, r0_types.size() - 1);
std::uniform_int_distribution<size_t> r1_distribution(0, r1_types.size() - 1);

for (int i = 0; i < 1000; i++) {
for (int i = 0; i < 100; i++) {
auto time_type = time_types[time_distribution(engine)];
ARROW_SCOPED_TRACE("Time type: ", *time_type);
auto key_type = key_types[key_distribution(engine)];
Expand All @@ -584,8 +584,7 @@ struct BasicTest {

auto end_time = std::chrono::system_clock::now();
std::chrono::duration<double> diff = end_time - start_time;
if (diff.count() > 2) {
// this normally happens on slow CI systems, but is fine
if (diff.count() > 0.2) {
break;
}
}
Expand Down

0 comments on commit 2bb3a58

Please sign in to comment.