Skip to content

Commit 1907e2e

Browse files
committed
[FIXUP] proper override for dropTable
1 parent 02d41bb commit 1907e2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
DownloadTableCSVData,
1616
DriverCapabilities,
1717
DriverInterface,
18+
QueryOptions,
1819
QuerySchemasResult,
1920
StreamOptions,
2021
StreamTableDataWithTypes,
@@ -573,6 +574,10 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
573574
return this.query('SELECT name as table_name FROM system.tables WHERE database = ?', [schemaName]);
574575
}
575576

577+
public override async dropTable(tableName: string, _options?: QueryOptions): Promise<void> {
578+
await this.command(`DROP TABLE ${tableName}`);
579+
}
580+
576581
protected getExportBucket(
577582
dataSource: string,
578583
): ClickhouseDriverExportAWS | undefined {

0 commit comments

Comments
 (0)