You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cte: '{{ alias }} AS ({{ query | indent(2, true) }})'
3227
3235
},
3228
3236
expressions: {
3229
3237
column_reference: '{% if table_name %}{{ table_name }}.{% endif %}{{ name }}',
3230
3238
column_aliased: '{{expr}} {{quoted_alias}}',
3239
+
query_aliased: '{{ query }} AS {{ quoted_alias }}',
3231
3240
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',
3232
3241
is_null: '{{ expr }} IS {% if negate %}NOT {% endif %}NULL',
3233
3242
binary: '({{ left }} {{ op }} {{ right }})',
3234
3243
sort: '{{ expr }} {% if asc %}ASC{% else %}DESC{% endif %}{% if nulls_first %} NULLS FIRST{% endif %}',
3244
+
order_by: '{% if index %} {{ index }} {% else %} {{ expr }} {% endif %} {% if asc %}ASC{% else %}DESC{% endif %}{% if nulls_first %} NULLS FIRST{% endif %}',
3235
3245
cast: 'CAST({{ expr }} AS {{ data_type }})',
3236
3246
window_function: '{{ fun_call }} OVER ({% if partition_by_concat %}PARTITION BY {{ partition_by_concat }}{% if order_by_concat or window_frame %} {% endif %}{% endif %}{% if order_by_concat %}ORDER BY {{ order_by_concat }}{% if window_frame %} {% endif %}{% endif %}{% if window_frame %}{{ window_frame }}{% endif %})',
3237
3247
window_frame_bounds: '{{ frame_type }} BETWEEN {{ frame_start }} AND {{ frame_end }}',
0 commit comments