Repository navigation
chore: Hide internal public utility APIs - #25963
Conversation
|
Thank you for opening this pull request! Reviewer note: cargo-semver-checks reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch). Details |
| /// This is not a public API and is for internal use only; see [API policy] for details. | ||
| /// | ||
| /// [API policy]: https://datafusion.apache.org/contributor-guide/api-health.html#internal-public-apis | ||
| #[doc(hidden)] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #25963 +/- ##
==========================================
+ Coverage 82.59% 82.77% +0.18%
==========================================
Files 1145 1148 +3
Lines 443934 451075 +7141
Branches 443934 451075 +7141
==========================================
+ Hits 366669 373385 +6716
+ Misses 55009 54937 -72
- Partials 22256 22753 +497 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| /// - the `predicate` expression is not aliased | ||
| /// - the `predicate` expression contains no window function calls | ||
| /// | ||
| /// # Public Only for Internal Use: |
There was a problem hiding this comment.
in fact the comment above says "for internal use in Datafusion only"
| /// This is not a public API and is for internal use only; see [API policy] for details. | ||
| /// | ||
| /// [API policy]: https://datafusion.apache.org/contributor-guide/api-health.html#internal-public-apis | ||
| #[doc(hidden)] |
There was a problem hiding this comment.
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
|
@alamb Thank you for the review! Feedbacks addressed. |
Which issue does this PR close?
Rationale for this change
See the previous PR for rationale
This PR adds #[doc(hidden)] and comments for public APIs that is used as internal utility.
The major categories are
#doc(hidden)What changes are included in this PR?
comments only
What is the testing strategy for this PR?
Are there any user-facing changes?