Skip to content

Commit 2ed6259

Browse files
committed
fix druid client
1 parent 1d38f5d commit 2ed6259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-druid-driver/src/DruidClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export class DruidClient {
6363
},
6464
});
6565

66-
if (cancelled) {
67-
await this.cancel(response.headers['x-druid-sql-query-id'] || '');
66+
if (cancelled && response.headers['x-druid-sql-query-id']) {
67+
await this.cancel(response.headers['x-druid-sql-query-id']);
6868

6969
throw new Error('Query cancelled');
7070
}

0 commit comments

Comments
 (0)