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

Update SQL all table/schemas reading functions to return maps with table names #718

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

zaleslaw
Copy link
Collaborator

@zaleslaw zaleslaw commented Jun 4, 2024

Fixes #671

Refactored the SQL table reading functions to return map data structures instead of list. This change helps to easily correlate each dataframe with its underlying table. Additionally, the function comments and test cases were updated to match this change.

Refactored the SQL table reading functions to return map data structures instead of list. This change helps to easily correlate each dataframe with its underlying table. Additionally, the function comments and test cases were updated to match this change.
@zaleslaw zaleslaw requested a review from Jolanrensen June 4, 2024 12:12
@zaleslaw zaleslaw modified the milestone: 0.14.0 Jun 4, 2024
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

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

Looks good :)

The only concern I have is with notebooks. Since we load the tables and we know the names, we should be able to generate safe accessors for them (like for a DataRow). Maybe something like #719 could help with that. But that's for the future :) for now it's a good change


while (tables.next()) {
val table = dbType.buildTableMetadata(tables)
if (!dbType.isSystemTable(table)) {
// we filter her second time because of specific logic with SQLite and possible issues with future databases
// we filter her a second time because of specific logic with SQLite and possible issues with future databases
Copy link
Collaborator

Choose a reason for hiding this comment

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

*here

Typographical errors in the comments of the readJdbc.kt file were corrected for clarity. Additionally, the MSSQLTest class in the mssqlTest.kt file was annotated with "@ignore" to skip the test in subsequent testing runs.
@zaleslaw zaleslaw merged commit 53b996e into master Jun 6, 2024
4 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.

Extract names from SQL tables where it's possible
2 participants