Skip to content

Commit

Permalink
Fix BigQuery FROM statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Brayden committed Aug 29, 2024
1 parent 8c0cfb8 commit f49eecf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/query-builder/dialects/bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export class BigQueryDialect extends AbstractDialect {
return `\`${table}\``;
}

formatFromSchemaAndTable(schema: string | undefined, table: string): string {
if (schema) {
return `\`${schema}.${table}\``;
}
return `\`${table}\``;
}

/**
* BigQuery currently entirely reimplements the `select` method due to the specialized
* nature of the BigQuery SQL dialect. When running a SELECT statement via BigQuery,
Expand Down

0 comments on commit f49eecf

Please sign in to comment.