Skip to content

Refactor getConnectionTableSource into BigQuery-specific and controll…#656

Merged
kylenesbit merged 4 commits intomainfrom
kjnesbit/fix-snowflake-list-schemas-tables
Apr 5, 2026
Merged

Refactor getConnectionTableSource into BigQuery-specific and controll…#656
kylenesbit merged 4 commits intomainfrom
kjnesbit/fix-snowflake-list-schemas-tables

Conversation

@kylenesbit
Copy link
Copy Markdown
Collaborator

…er-private methods

  • Inline fetchTableSchema into listTablesForBigQuery since BigQuery is the only listTables variant that needs individual schema fetches
  • Move getConnectionTableSource logic to a private fetchTable method on ConnectionController for the getTable endpoint
  • Remove deprecated /tableSource endpoint from server.ts
  • Remove deprecated /queryData GET endpoint from server.ts
  • Remove deprecated TableSource schema reference from api-doc.yaml
  • Add comprehensive unit tests for getSchemasForConnection, error handling edge cases, DuckLake schema prefixing, and extractErrorDataFromError
  • Fix TS strict null errors in ducklake.test.ts and db_utils.spec.ts

Made-with: Cursor

Kyle Nesbit added 4 commits April 4, 2026 22:31
…er-private methods

- Inline fetchTableSchema into listTablesForBigQuery since BigQuery is the
  only listTables variant that needs individual schema fetches
- Move getConnectionTableSource logic to a private fetchTable method on
  ConnectionController for the getTable endpoint
- Remove deprecated /tableSource endpoint from server.ts
- Remove deprecated /queryData GET endpoint from server.ts
- Remove deprecated TableSource schema reference from api-doc.yaml
- Add comprehensive unit tests for getSchemasForConnection, error handling
  edge cases, DuckLake schema prefixing, and extractErrorDataFromError
- Fix TS strict null errors in ducklake.test.ts and db_utils.spec.ts

Made-with: Cursor
Derive columns directly from source.fields instead of validating
and mapping separately. The null source check is sufficient.

Made-with: Cursor
Made-with: Cursor
I, Kyle Nesbit <kjnesbit@ms2.co>, hereby add my Signed-off-by to this commit: 6091b0f
I, Kyle Nesbit <kjnesbit@ms2.co>, hereby add my Signed-off-by to this commit: 6471192
I, Kyle Nesbit <kjnesbit@ms2.co>, hereby add my Signed-off-by to this commit: 93600c5

Signed-off-by: Kyle Nesbit <kjnesbit@ms2.co>
Made-with: Cursor
@kylenesbit kylenesbit requested a review from sagarswamirao April 5, 2026 04:56
@kylenesbit kylenesbit merged commit 14fa174 into main Apr 5, 2026
9 checks passed
@kylenesbit kylenesbit deleted the kjnesbit/fix-snowflake-list-schemas-tables branch April 5, 2026 13:34
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.

1 participant