Skip to content

Commit

Permalink
fix(schema-compiler): correct string casting for Databricks
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Aug 29, 2024
1 parent 070e127 commit ae9691d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cubejs-databricks-jdbc-driver/src/DatabricksQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export class DatabricksQuery extends BaseQuery {
return new DatabricksFilter(this, filter);
}

public castToString(sql: string): string {
return `CAST(${sql} as STRING)`;
}

public hllInit(sql: string) {
return `hll_sketch_agg(${sql})`;
}
Expand Down

0 comments on commit ae9691d

Please sign in to comment.