Skip to content

feat(csharp/src/Drivers/BigQuery): implement AdbcStatement.Cancel on BigQuery - once for all semantic#3423

Closed
birschick-bq wants to merge 4 commits intoapache:mainfrom
birschick-bq:dev/birschick-bq/bigquery-cancel-statement-full
Closed

feat(csharp/src/Drivers/BigQuery): implement AdbcStatement.Cancel on BigQuery - once for all semantic#3423
birschick-bq wants to merge 4 commits intoapache:mainfrom
birschick-bq:dev/birschick-bq/bigquery-cancel-statement-full

Conversation

@birschick-bq
Copy link
Contributor

Adds implementation of AdbcStatement.Cancel to the BigQuery driver.

  • Add wrapper ExecuteCancellableJobAsync to wrap calls with async cancellable steps. The context will allow the executing code to set the current job to cancel explicitly.
  • BigQueryStatement.Cancel() will call the CancellationTokenSource.Cancel to indicate a cancellation is requested.
  • A single token source is used for Statement/Reader/Stream so that cancelling the statement will cancel all the associated and generated objects.
  • The RetryManager has been updated to not catch OperationCancellationException.
  • Test added to confirm expected behavior.

@birschick-bq
Copy link
Contributor Author

@CurtHagenlocher / @davidhcoe - This is the Cancel "once-for-all" semantic implementation.

@birschick-bq
Copy link
Contributor Author

This not the correct semantics.

@birschick-bq birschick-bq deleted the dev/birschick-bq/bigquery-cancel-statement-full branch October 13, 2025 17:32
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.

2 participants