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

Refactor run_query into multiple modules #396

Merged
merged 2 commits into from
Jan 25, 2021
Merged

Refactor run_query into multiple modules #396

merged 2 commits into from
Jan 25, 2021

Conversation

czgu
Copy link
Collaborator

@czgu czgu commented Jan 25, 2021

Closes #389

Broken up run_query into the following:

  • notification
  • executor creation

Internally, separated out the error handling logic and run executor logic into separate functions.

There shouldn't be any behavioral change in terms of run_query.

@czgu czgu requested a review from meowcodes January 25, 2021 17:58
@czgu czgu added the patch release Bug fix/version bump/small feature label Jan 25, 2021
@czgu czgu requested review from meowcodes and removed request for meowcodes January 25, 2021 17:58
@czgu czgu added the refactor refactor code for better quality label Jan 25, 2021
pass


class InvalidQueryExecution(QueryExecutorException):
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious what is the point of having these error classes?

@meowcodes meowcodes merged commit 5c4b0af into master Jan 25, 2021
@meowcodes meowcodes deleted the engine_refactor branch January 25, 2021 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release Bug fix/version bump/small feature refactor refactor code for better quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor run_query.py and modularize run query logic
2 participants