From 1d06ae1c47a711ca7c71face63586fa06d94f913 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 22:06:21 +0000 Subject: [PATCH] Fix BigQuery Job.cancel() return type compatibility - change interface from Promise to Promise to match actual CancelResponse return type Co-Authored-By: Dallin Bentley --- packages/data-source/src/adapters/bigquery.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/data-source/src/adapters/bigquery.ts b/packages/data-source/src/adapters/bigquery.ts index ca16aae2f..24a7ffae9 100644 --- a/packages/data-source/src/adapters/bigquery.ts +++ b/packages/data-source/src/adapters/bigquery.ts @@ -10,7 +10,7 @@ import { type AdapterQueryResult, BaseAdapter, type FieldMetadata } from './base class BigQueryCancellableQuery implements CancellableQuery { private cancelled = false; private controller = new BaseCancellationController(); - private job?: unknown; + private job?: { cancel(): Promise }; constructor( private client: BigQuery, @@ -66,7 +66,7 @@ class BigQueryCancellableQuery implements CancellableQuery { this.controller.onCancellation(async () => { if (this.job) { try { - await (this.job as any).cancel(); + await this.job.cancel(); } catch (error) { console.warn('BigQuery job cancellation warning:', error); }