Skip to content

Commit b8aa735

Browse files
committed
chore(cubesql): SQL push down support for IS NULL and IS NOT NULL expressions -- missing templates
1 parent 9b3c27d commit b8aa735

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cubejs-schema-compiler/src/adapter/BaseQuery.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,8 @@ class BaseQuery {
24512451
},
24522452
expressions: {
24532453
column_aliased: '{{expr}} {{quoted_alias}}',
2454-
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',
2454+
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',
2455+
is_null: '{{ expr }} {% if negate %}NOT {% endif %}IS NULL',
24552456
binary: '({{ left }} {{ op }} {{ right }})',
24562457
sort: '{{ expr }} {% if asc %}ASC{% else %}DESC{% endif %}{% if nulls_first %} NULLS FIRST{% endif %}',
24572458
cast: 'CAST({{ expr }} AS {{ data_type }})',

0 commit comments

Comments
 (0)