From cc472af0bc126e2afeb3c3f14df68c1af2f2f690 Mon Sep 17 00:00:00 2001 From: Mikhail Cheshkov Date: Mon, 18 Nov 2024 17:30:45 +0200 Subject: [PATCH] [FIXUP] proper override for dropTable --- packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts b/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts index 64feb30e1b14f..7e995d9a42f85 100644 --- a/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts +++ b/packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts @@ -573,6 +573,10 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface { return this.query('SELECT name as table_name FROM system.tables WHERE database = ?', [schemaName]); } + public override async dropTable(tableName: string, _options?: QueryOptions): Promise { + await this.command(`DROP TABLE ${tableName}`); + } + protected getExportBucket( dataSource: string, ): ClickhouseDriverExportAWS | undefined {