Skip to content

Commit 43493e4

Browse files
qiao-xKSDaemon
authored andcommitted
rollback tableFullName construction
1 parent 4020b36 commit 43493e4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -657,14 +657,11 @@ export class DatabricksDriver extends JDBCDriver {
657657
this.config.bucketType
658658
}`);
659659
}
660-
// Construct a fully qualified table name with proper quoting
661-
// 1. Quotes are needed to handle special characters in identifiers, e.g. `my-table`
662-
// 2. Table name may include schema (e.g. 'schema.table'), so we split and quote each part, e.g. `schema`.`table`
663660
const tableFullName = `${
664661
this.config.catalog
665-
? `${this.quoteIdentifier(this.config.catalog)}.`
662+
? `${this.config.catalog}.`
666663
: ''
667-
}${tableName.split('.').map(part => this.quoteIdentifier(part)).join('.')}`;
664+
}${tableName}`;
668665
const types = options.query
669666
? await this.unloadWithSql(
670667
tableFullName,

0 commit comments

Comments
 (0)