Skip to content

Commit

Permalink
fix(schema-compiler): correct string casting for BigQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Aug 29, 2024
1 parent 070e127 commit f9f41f4
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 f9f41f4

Please sign in to comment.