Repository navigation
chore: Hide internal public utility APIs #25963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1408,6 +1408,19 @@ impl HashJoinExec { | |
| /// physical optimizer rule to determine a good join order, which is | ||
| /// executed before the `EnforceDistribution` rule (the rule that may | ||
| /// insert `RepartitionExec` operators). | ||
| /// | ||
| /// # Public Only for Internal Use: | ||
| /// | ||
| /// This is not a public API and is for internal use only; see [API policy] for details. | ||
| /// | ||
| /// Direct use of this API in downstream projects is discouraged because | ||
| /// correctness depends on strict preconditions. See the notes above for | ||
| /// correct usage. | ||
| /// | ||
| /// This API may change frequently as internal join optimizations evolve. | ||
| /// | ||
| /// [API policy]: https://datafusion.apache.org/contributor-guide/api-health.html#internal-public-apis | ||
| #[doc(hidden)] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This API seem like reasonable to be public, however now it requires cooperation from several other optimizer rules, to make it safe. The comments right above can demonstrate it is tricky to use. Note downstreams can still have access to it, this marker is only a hint for (a) might change often (b) tricky to use it correctly, as explained in the link
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one in particular I would like to maybe add a comment about "might change" or "is tricky to use" if posisble to make it easier to understand the internal marking |
||
| pub fn swap_inputs( | ||
| &self, | ||
| partition_mode: PartitionMode, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact the comment above says "for internal use in Datafusion only"