-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add @AccessApiOverload annotations for API methods #1011
base: master
Are you sure you want to change the base?
Conversation
Annotated multiple methods with @AccessApiOverload to provide better API usability and to simplify overload selection for common use cases. The changes affect functions in various files, ensuring consistent application across the DataFrame API.
@@ -429,13 +433,16 @@ public interface ColsColumnsSelectionDsl<out _UNUSED> { | |||
* | |||
* `df.`[`select`][DataFrame.select]` { "myColumnGroup"`[`[`][String.cols]`columnA, columnB`[`]`][String.cols]` }` | |||
*/ | |||
@AccessApiOverload |
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.
There are a few annotation on doc interfaces. Need to be removed
public operator fun String.rangeTo(endInclusive: KProperty<*>): ColumnSet<*> = | ||
toColumnAccessor().rangeTo(endInclusive.toColumnAccessor()) | ||
|
||
/** | ||
* @include [CommonRangeOfColumnsDocs] | ||
* {@set [CommonRangeOfColumnsDocs.Example] `"fromColumn"`[`..`][String.rangeTo]`toColumn`} | ||
*/ | ||
@AccessApiOverload |
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.
I don't think this must be annotated. We should still be able to write "someCol" .. someOtherCol
if the compiler plugin does not recognize it has someCol
.
We only want to remove KProperty
overloads here, right?
Closes #1005 Related to #959
@koperagen could you please have a look? Am I correct, espicially with the col.kt file?