Skip to content

Commit

Permalink
chore(cubesql): SQL push down support for IS NULL and IS NOT NULL exp…
Browse files Browse the repository at this point in the history
…ressions -- missing templates
  • Loading branch information
paveltiunov committed Nov 2, 2023
1 parent 9b3c27d commit b8aa735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,8 @@ class BaseQuery {
},
expressions: {
column_aliased: '{{expr}} {{quoted_alias}}',
case: 'CASE {% if expr %}{{ expr }} {% endif %}{% for when, then in when_then %}WHEN {{ when }} THEN {{ then }}{% endfor %}{% if else_expr %} ELSE {{ else_expr }}{% endif %} END',
case: 'CASE{% if expr %}{{ expr }} {% endif %}{% for when, then in when_then %} WHEN {{ when }} THEN {{ then }}{% endfor %}{% if else_expr %} ELSE {{ else_expr }}{% endif %} END',
is_null: '{{ expr }} {% if negate %}NOT {% endif %}IS NULL',
binary: '({{ left }} {{ op }} {{ right }})',
sort: '{{ expr }} {% if asc %}ASC{% else %}DESC{% endif %}{% if nulls_first %} NULLS FIRST{% endif %}',
cast: 'CAST({{ expr }} AS {{ data_type }})',
Expand Down

0 comments on commit b8aa735

Please sign in to comment.