Skip to content

Migrate usages of AccessOverload APIs in inline functions to public alternatives #1162

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koperagen
Copy link
Collaborator

@koperagen koperagen commented Apr 29, 2025

Related to #1156
With Public API modifier enabled, such calls to AccessOverload APIs won't compile. We cannot make them PublishedAPI

@koperagen koperagen added this to the 1.0.0-Beta1 (0.16) milestone Apr 29, 2025
@koperagen koperagen requested a review from Jolanrensen April 29, 2025 17:05
@koperagen koperagen self-assigned this Apr 29, 2025
@koperagen koperagen force-pushed the migrate-inlined-internal-api branch from dd08be6 to 44d9591 Compare April 29, 2025 17:22
@@ -1177,8 +1177,9 @@ class DataFrameTests : BaseTest() {
.split { others }.intoRows()
.add(sum) { name.length + other().length }

val matrix = src.pivot { other }.groupBy { name }.with { sum }
val matrix = src.pivot { other }.groupBy { name }.with { sum() }
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are these brackets now needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

with is a "row expression", and in this test it used to be that return type is ColumnReference, not value. Techically i didn't had to change sum => sum() because i kept the branch that handles this case for compatibility (at least in this pr), but decided to change usage anyway

@koperagen koperagen force-pushed the migrate-inlined-internal-api branch from 44d9591 to 07044c4 Compare April 30, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants