Skip to content

Commit

Permalink
fix(schema-compiler): correct string casting for BigQuery (#8651)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon authored Aug 29, 2024
1 parent 9408bb4 commit f6ac9c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cubejs-schema-compiler/src/adapter/BigqueryQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class BigqueryFilter extends BaseFilter {
}

export class BigqueryQuery extends BaseQuery {
public castToString(sql) {
return `CAST(${sql} as STRING)`;
}

public convertTz(field) {
return `DATETIME(${field}, '${this.timezone}')`;
}
Expand Down

0 comments on commit f6ac9c2

Please sign in to comment.