Skip to content

Conversation

@mroz45
Copy link
Contributor

@mroz45 mroz45 commented Oct 30, 2024

What changes are included in this PR?

I add checking joinable before join process_thread. It will prevent exeptions in case when plan is invalid and asof_join never_starts.

@mroz45 mroz45 requested a review from westonpace as a code owner October 30, 2024 10:30
@github-actions
Copy link

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

In the case of PARQUET issues on JIRA the title also supports:

PARQUET-${JIRA_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

See also:

@mroz45 mroz45 changed the title GH-${44526}: [${C++}] ${Fix crash when thread in asof_join is not running} GH-44526: [C++] Fix crash when thread in asof_join is not running Oct 30, 2024
@github-actions
Copy link

⚠️ GitHub issue #44526 has been automatically assigned in GitHub to PR creator.

@zanmato1984 zanmato1984 changed the title GH-44526: [C++] Fix crash when thread in asof_join is not running GH-44526: [C++][Acero] Fix crash when thread in asof_join is not running Oct 30, 2024
@zanmato1984
Copy link
Contributor

Hi @mroz45 , thanks for fixing this!

I think we still need a reproducible C++ UT. If you have any difficulties on that, please let me know.

@mroz45
Copy link
Contributor Author

mroz45 commented Oct 31, 2024

@zanmato1984
Do you think this test is enough?

@zanmato1984
Copy link
Contributor

@zanmato1984 Do you think this test is enough?

Thank you for the update. The test should suffice at my first glance. I'll take a deeper look soon.

Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the blank lines around individual tests.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 31, 2024
Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits. Otherwise LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/*schema*/ nullptr};
/*schema=*/nullptr};

Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

I'll keep this PR open for another few days to see if @westonpace @pitrou have any comments. After that I'll merge this.

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Nov 6, 2024
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Nov 6, 2024
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a naming fix, otherwise LGTM

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
@zanmato1984 zanmato1984 merged commit cf10b40 into apache:main Nov 11, 2024
@zanmato1984
Copy link
Contributor

Merged. Thank you @mroz45 for fixing this!

@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit cf10b40.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.

@kou
Copy link
Member

kou commented Nov 12, 2024

@zanmato1984 Could you use our merge script https://github.com/apache/arrow/tree/main/dev#how-to-merge-a-pull-request next time? It removes comments (<!-- ... -->) from PR description and use the prepared PR description as a commit message.

@zanmato1984
Copy link
Contributor

@zanmato1984 Could you use our merge script main/dev#how-to-merge-a-pull-request next time? It removes comments (<!-- ... -->) from PR description and use the prepared PR description as a commit message.

Thank you for reminding, I'll read the instruction and use it next time. And sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants