Skip to content

Fix cancellation.#173

Merged
ueshin merged 2 commits into
databricks:mainfrom
ueshin:cancel
Sep 19, 2022
Merged

Fix cancellation.#173
ueshin merged 2 commits into
databricks:mainfrom
ueshin:cancel

Conversation

@ueshin
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
Contributor 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