Skip to content

Conform schema to redshift naming conventions #208

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

holly-evans
Copy link
Contributor

@holly-evans holly-evans commented May 5, 2025

Use self.conform_schema(self.schema) in place of self.schema to use SQL snake-case property names and avoid duplicate columns on rerun

Use of conform_schema in Meltano SDK's SQLSink: https://github.com/meltano/sdk/blob/da17941f75f0703e378fa591ce6a48ac44516668/singer_sdk/sinks/sql.py#L240

There's some linting in here - all my changes involve conformed_schema and conform_record

Closes #207

P.S. the linter is failing due to ruff version differences which I added on the other PR. i can gladly add that here or break it off into another if that makes sense

@holly-evans holly-evans requested a review from a team as a code owner May 5, 2025 23:28
@holly-evans
Copy link
Contributor Author

@tobiascadee hoping to merge this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

target-redshift creates extra columns when stream schema has spaces
1 participant