Skip to content

Commit a20f4b2

Browse files
committed
fix(cubesql): Fix Databricks identifier quotes
1 parent 86a58a5 commit a20f4b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cubejs-databricks-jdbc-driver/src/DatabricksQuery.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ export class DatabricksQuery extends BaseQuery {
117117
templates.functions.RTRIM = 'RTRIM({{ args|reverse|join(", ") }})';
118118
templates.functions.DATEDIFF = 'DATEDIFF({{ date_part }}, DATE_TRUNC(\'{{ date_part }}\', {{ args[1] }}), DATE_TRUNC(\'{{ date_part }}\', {{ args[2] }}))';
119119
templates.expressions.timestamp_literal = 'from_utc_timestamp(\'{{ value }}\', \'UTC\')';
120+
templates.quotes.identifiers = '`';
121+
templates.quotes.escape = '``';
120122
return templates;
121123
}
122124
}

0 commit comments

Comments
 (0)