Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate jobs.query and stateless query for faster queries #1337

Merged
merged 13 commits into from
Mar 27, 2024
Merged
Prev Previous commit
Next Next commit
fix: avoid promisify of buildQueryRequest method
  • Loading branch information
alvarowolfx committed Feb 28, 2024
commit ed4381c15bdf7116dd8ba4307fa8810db420c6f5
6 changes: 3 additions & 3 deletions src/bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ export class BigQuery extends Service {
typeof optionsOrCallback === 'function' ? optionsOrCallback : cb;

this.trace('[query]', query, options);
const queryReq = this.buildQueryRequest(query, options);
const queryReq = this.buildQueryRequest_(query, options);
if (!queryReq) {
this.createQueryJob(query, (err, job, resp) => {
if (err) {
Expand Down Expand Up @@ -2181,11 +2181,11 @@ export class BigQuery extends Service {
* @param options QueryOptions
* @returns bigquery.IQueryRequest | undefined
*/
private buildQueryRequest(
private buildQueryRequest_(
query: string | Query,
options: QueryOptions
): bigquery.IQueryRequest | undefined {
this.trace('[probeFastPath_]', query, options);
this.trace('[buildQueryRequest]', query, options);
if (process.env.FAST_QUERY_PATH === 'DISABLED') {
return undefined;
}
Expand Down