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

Fix cancellation. #173

Merged
merged 2 commits into from
Sep 19, 2022
Merged

Fix cancellation. #173

merged 2 commits into from
Sep 19, 2022

Conversation

ueshin
Copy link
Collaborator

@ueshin ueshin commented Sep 15, 2022

Description

DatabricksSQLConnectionWrapper should have cancel method and handle it properly.

Otherwise, the following error will be seen when cancelling the session due to e.g., dbt test --fail-fast:

AttributeError: 'DatabricksSQLConnectionWrapper' object has no attribute 'cancel'

Copy link
Collaborator

@allisonwang-db allisonwang-db left a comment

Choose a reason for hiding this comment

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

Thanks for adding the integration test!

@ueshin
Copy link
Collaborator Author

ueshin commented Sep 19, 2022

Thanks! merging, and backport to 1.2 and 1.1.

@ueshin ueshin merged commit e71d4cd into databricks:main Sep 19, 2022
@ueshin ueshin deleted the cancel branch September 19, 2022 19:28
ueshin added a commit that referenced this pull request Sep 19, 2022
### Description

`DatabricksSQLConnectionWrapper` should have `cancel` method and handle it properly.

Otherwise, the following error will be seen when cancelling the session due to e.g., `dbt test --fail-fast`:

```
AttributeError: 'DatabricksSQLConnectionWrapper' object has no attribute 'cancel'
```
ueshin added a commit that referenced this pull request Sep 19, 2022
### Description

`DatabricksSQLConnectionWrapper` should have `cancel` method and handle it properly.

Otherwise, the following error will be seen when cancelling the session due to e.g., `dbt test --fail-fast`:

```
AttributeError: 'DatabricksSQLConnectionWrapper' object has no attribute 'cancel'
```
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.

3 participants