Skip to content
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

Enable multi-round DataSchema declaration processing (#140) #247

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

ermolenkodev
Copy link
Contributor

By enabling multi-round DataSchema declaration processing, we add support for the generation of DataSchema declaration references another declaration generated by @file:ImportDataSchema

Fixes #140

@ermolenkodev ermolenkodev added the bug Something isn't working label Jan 31, 2023
@ermolenkodev ermolenkodev added this to the 0.10.0 milestone Jan 31, 2023
By enabling multi-round DataSchema declaration processing we add support for generation of DataSchema declaration
references another declaration  generated by @file:ImportDataSchema

Fixes Kotlin#140

fun main() {
val df: DataFrame<Repos> = DataFrame.readJson("data/jetbrains_repositories.json") as DataFrame<Repos>
df.repositories[0].print()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a note: this code is only compiled, not executed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I got it. I made it this way to illustrate the idea of why this multi-round generation can be needed)

@ermolenkodev ermolenkodev merged commit 514d3dd into Kotlin:master Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug using @file:ImportDataSchema
2 participants