Skip to content

Conversation

@topherinternational
Copy link
Contributor

@topherinternational topherinternational commented Nov 7, 2024

#43669 used the wrong keys for retrieving user and password from the boto3 redshift-serverless client response, leading to KeyError exceptions. This change uses the correct camel-cased dbUser and dbPassword keys; the boto3 redshift client response returns the Pascal-cased DbUser and DbPassword and these were mistakenly copied into the serverless code block (and the associated test code).

Unfortunately moto does not yet support redshift-serverless, which might have caught this bug in the first PR.

related: #43669

Copy link
Contributor

@rawwar rawwar left a comment

Choose a reason for hiding this comment

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

@rawwar rawwar requested a review from vincbeck November 8, 2024 04:21
Copy link
Contributor

@shahar1 shahar1 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@shahar1 shahar1 merged commit 1363cc5 into apache:main Nov 8, 2024
@topherinternational topherinternational deleted the postgres-hook-redshift-serverless-fix branch November 8, 2024 12:31
@topherinternational
Copy link
Contributor Author

Nice catch!

Thanks, the "catch" was when I shadowed this code into my org's Airflow instance and got the key error, so I found it the hard way 😅.

ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
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.

3 participants