Skip to content

Commit

Permalink
fix(cubesql): Fix Databricks identifier quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MazterQyou committed May 14, 2024
1 parent 86a58a5 commit a20f4b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cubejs-databricks-jdbc-driver/src/DatabricksQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export class DatabricksQuery extends BaseQuery {
templates.functions.RTRIM = 'RTRIM({{ args|reverse|join(", ") }})';
templates.functions.DATEDIFF = 'DATEDIFF({{ date_part }}, DATE_TRUNC(\'{{ date_part }}\', {{ args[1] }}), DATE_TRUNC(\'{{ date_part }}\', {{ args[2] }}))';
templates.expressions.timestamp_literal = 'from_utc_timestamp(\'{{ value }}\', \'UTC\')';
templates.quotes.identifiers = '`';
templates.quotes.escape = '``';
return templates;
}
}

0 comments on commit a20f4b2

Please sign in to comment.