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

[BUGFIX] Add connect args to execution engine schema #6663

Conversation

itaise
Copy link
Contributor

@itaise itaise commented Dec 29, 2022

This PR is to solve this issue.

There is an issue that when creating SQLAlchemy execution engine, if the user send "connect_args" in the execution engine config, it is not passed to the "create_engine" method.
This is because this attribute is dropped when creating the ExecutionEngineConfigSchema.

I checked it locally and this PR solve the issue

Changes proposed in this pull request:

  • Add connect_args to the ExecutionEngineConfigSchema

@netlify
Copy link

netlify bot commented Dec 29, 2022

👷 Deploy request for niobium-lead-7998 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 3fea7c6

@itaise itaise changed the title add connect args to execution engine schema [BUGFIX] add connect args to execution engine schema Dec 29, 2022
@itaise itaise changed the title [BUGFIX] add connect args to execution engine schema [BUGFIX] Add connect args to execution engine schema Dec 29, 2022
@@ -1004,6 +1004,9 @@ class Meta:
boto3_options = fields.Dict(
keys=fields.Str(), values=fields.Str(), required=False, allow_none=True
)
connect_args = fields.Dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we be able to add connect_args to ExecutionEngineConfig class above as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Otherwise the PR looks great. thanks for catching this @itaise 🙇🏼

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Shinnnyshinshin thank you! done :)

Copy link
Contributor

@Shinnnyshinshin Shinnnyshinshin left a comment

Choose a reason for hiding this comment

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

🚀

@Shinnnyshinshin Shinnnyshinshin merged commit a5a7a17 into great-expectations:develop Dec 30, 2022
Shinnnyshinshin pushed a commit that referenced this pull request Dec 30, 2022
…lag-for-returning-query

* develop:
  [Feature] ExpectDaySumToBeCloseToEquivalentWeekDayMean (#6664)
  [BUGFIX] Add connect args to execution engine schema (#6663)
Shinnnyshinshin pushed a commit that referenced this pull request Dec 30, 2022
* develop:
  [Feature] ExpectDaySumToBeCloseToEquivalentWeekDayMean (#6664)
  [BUGFIX] Add connect args to execution engine schema (#6663)
@itaise itaise deleted the add-connect-args-to-exec-engine branch January 1, 2023 15:08
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.

4 participants