We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead97b4 commit ae6f64fCopy full SHA for ae6f64f
packages/cubejs-databricks-jdbc-driver/src/DatabricksQuery.ts
@@ -197,6 +197,7 @@ export class DatabricksQuery extends BaseQuery {
197
templates.functions.TRUNC = 'CASE WHEN ({{ args[0] }}) >= 0 THEN FLOOR({{ args_concat }}) ELSE CEIL({{ args_concat }}) END';
198
templates.expressions.timestamp_literal = 'from_utc_timestamp(\'{{ value }}\', \'UTC\')';
199
templates.expressions.extract = 'EXTRACT({{ date_part }} FROM {{ expr }})';
200
+ templates.expressions.interval_single_date_part = 'INTERVAL \'{{ num }}\' {{ date_part }}';
201
templates.quotes.identifiers = '`';
202
templates.quotes.escape = '``';
203
// TODO: Databricks has `TIMESTAMP_NTZ` with logic similar to Pg's `TIMESTAMP`
0 commit comments