Skip to content

Data schemas docs #1339

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

Merged
merged 7 commits into from
Jul 24, 2025
Merged

Data schemas docs #1339

merged 7 commits into from
Jul 24, 2025

Conversation

AndreiKingsley
Copy link
Collaborator

image

See [](extensionPropertiesApi.md) for more information.


## Schemas retrieving
Copy link
Collaborator

Choose a reason for hiding this comment

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

*Schema Retrieving
or *Retrieving Schemas


Defining a data schema manually can be difficult, especially for dataframes with many columns or deeply nested structures, and may lead to mistakes in column names or types. Kotlin DataFrame provides several methods for generating data schemas.

* [**`generate..()` methods**](DataSchemaGenerationMethods.md) are extensions for [`DataFrame`](DataFrame.md) that generate a code string representing its `DataSchema`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

also extensions for DataFrameSchema, might be relevant

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you mean?

Copy link
Collaborator

Choose a reason for hiding this comment

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

you can call df.generateDataClasses() but also, if you have just the schema, like from JDBC, you can call schema.generateDataClasses()

### Plugins

> The current Gradle plugin is **under consideration for deprecation** and may be officially marked as deprecated in future releases.
> The KSP plugin is currently non-functional.
Copy link
Collaborator

Choose a reason for hiding this comment

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

no it isn't. It should still work, but, it's also gonna be deprecated, otherwise we'd need to migrate to KSP2

Copy link
Collaborator Author

@AndreiKingsley AndreiKingsley Jul 22, 2025

Choose a reason for hiding this comment

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

Well, it's true for Kotlin 2.1+, but we don't want users to use for now, so I'd write it like it is.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if we use them, but check the DocumentationUrls.kt in the project whenever we rename documentation md files. This does change the url, namely.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok. But only changing file names affects URL, moving in other folder doesn't.

Copy link
Collaborator

Choose a reason for hiding this comment

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

true


## KSP Plugin

> The KSP plugin is **not compatible with Kotlin 2.1 or newer**.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is that true?

They just need to add ksp.useKSP2=false afaik. I don't know how long KSP will support KSP1, but while they do, KSP will work fine. DataFrame targets Kotlin 2.2 and it works fine after all ;)

Copy link
Collaborator

Choose a reason for hiding this comment

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

(We even provide an error from the gradle plugin when they try to use KSP2 and tell them how to solve it :) )

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree with @Jolanrensen here, unfortunately we need to communicate this problem

Copy link
Collaborator

@zaleslaw zaleslaw left a comment

Choose a reason for hiding this comment

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

I will wait till the comments from Jolan will be fixed

# Conflicts:
#	docs/StardustDocs/topics/schemas/DataSchemaGenerationMethods.md
@AndreiKingsley AndreiKingsley merged commit 0b4355d into master Jul 24, 2025
3 checks passed
@AndreiKingsley AndreiKingsley deleted the data_schemas_docs branch July 24, 2025 12:14
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.

Migrate Overview page to the Concept page and collect all Library's conceptions and design decisions under one section
4 participants