Skip to content

fix: preserve database dialect in SQL connection string sanitization#71

Merged
Shashankss1205 merged 1 commit into
sktime:mainfrom
Sumit-ai-dev:fix/sql-adapter-dialect
Apr 11, 2026
Merged

fix: preserve database dialect in SQL connection string sanitization#71
Shashankss1205 merged 1 commit into
sktime:mainfrom
Sumit-ai-dev:fix/sql-adapter-dialect

Conversation

@Sumit-ai-dev
Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue where _sanitize_connection_string would aggressively split on @ and replace everything before it with ***, destroying the database dialect (e.g., postgresql://). This caused the LLM agent to lose context on what SQL dialect to use when reading metadata.

The new logic preserves the protocol scheme before applying the mask.

Fixes #70

Fixes an issue where  would aggressively
split on  and replace everything before it with , destroying
the database dialect (e.g., ). This caused the LLM
agent to lose context on what SQL dialect to use when reading metadata.

The new logic preserves the protocol scheme before applying the mask.
@Sumit-ai-dev
Copy link
Copy Markdown
Contributor Author

@Shashankss1205 ready to review :)

@Shashankss1205 Shashankss1205 merged commit 96be277 into sktime:main Apr 11, 2026
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.

[BUG] SQLAdapter _sanitize_connection_string drops database dialect from metadata

2 participants