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

Add nullability inference support to dataframe-jdbc #672

Merged
merged 4 commits into from
Apr 29, 2024

Conversation

zaleslaw
Copy link
Collaborator

This update adds a new parameter inferNullability for various dataframe reading functions including readSqlTable, readSqlQuery, and readResultSet. It allows better control over how column nullability should be inferred. The h2Test file has been adjusted to test this new feature.

Fixes #541

This update adds a new parameter `inferNullability` for various dataframe reading functions including `readSqlTable`, `readSqlQuery`, and `readResultSet`. It allows better control over how column nullability should be inferred. The `h2Test` file has been adjusted to test this new feature.
The code format of the requirement message for SQL query validation in the readJdbc.kt file has been improved. The change enhances readability by wrapping the requirement message into its own block, splitting the long string into two separate lines rather than extending it across one long line.
This commit changes the inferNullability parameter from 'Infer' to a Boolean type in functions of readJdbc.kt and adjusts related function calls in h2Test.kt. Now, inferNullability takes a Boolean value with 'true' indicating Inference and 'false' meaning no inference, making it more intuitive and easier to use.
@zaleslaw zaleslaw requested review from koperagen and removed request for Jolanrensen April 26, 2024 11:04
The Infer.Nulls call was redundant and has been removed from the readJdbc.kt file. This simplifies the code of reading JDBC in the DataFrame-JDBC module, without altering functionality.
@zaleslaw zaleslaw merged commit ae1692d into Kotlin:master Apr 29, 2024
1 of 2 checks passed
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.

DataColumn nullability in JDBC
2 participants