Skip to content

Commit f135933

Browse files
authored
fix(cubejs-questdb-driver): fix obsolete column name in SHOW TABLES (#8493) Thanks @puzpuzpuz!
* fix(cubejs-questdb-driver): fix obsolete column name in SHOW TABLES * Remove redundant await
1 parent b5075a4 commit f135933

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/cubejs-questdb-driver/src/QuestDriver.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,7 @@ export class QuestDriver<Config extends QuestDriverConfiguration = QuestDriverCo
206206

207207
// eslint-disable-next-line camelcase
208208
public async getTablesQuery(_schemaName: string): Promise<({ table_name?: string, TABLE_NAME?: string })[]> {
209-
const response = await this.query('SHOW TABLES', []);
210-
211-
return response.map((row: any) => ({
212-
table_name: row.table,
213-
}));
209+
return this.query('SHOW TABLES', []);
214210
}
215211

216212
public async tableColumnTypes(table: string) {

packages/cubejs-testing-shared/src/db-container-runners/questdb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DbRunnerAbstract, DBRunnerContainerOptions } from './db-runner.abstract
44

55
export class QuestDBRunner extends DbRunnerAbstract {
66
public static startContainer(options: DBRunnerContainerOptions) {
7-
const version = process.env.TEST_QUEST_DB_VERSION || options.version || '7.2';
7+
const version = process.env.TEST_QUEST_DB_VERSION || options.version || '8.0.3';
88

99
const container = new GenericContainer(`questdb/questdb:${version}`)
1010
.withExposedPorts(8812)

0 commit comments

Comments
 (0)