vscode-dbt-power-user icon indicating copy to clipboard operation
vscode-dbt-power-user copied to clipboard

Compiled preview looks different that actual compiled code

Open wtfzambo opened this issue 3 years ago • 0 comments

Expected behavior

Compiled preview look the same as actual compiled code

Actual behavior

As title suggests. It seems that jinja's trimming whitespaces is not being considered. See screenshots.

Steps To Reproduce

Macro used:

{% macro get_payment_type_description(payment_type) -%}
    case {{ payment_type }}
        when 1 then 'Credit Card'
        when 2 then 'Cash'
        when 3 then 'No charge'
        when 4 then 'Dispute'
        when 5 then 'Unknown'
        when 6 then 'Voided trip'
    end
{%- endmacro %}

Log output/Screenshots

  • Compiled code: image

  • Preview: image

Operating System

Ubuntu 20.04 on WSL2

dbt version

1.4.4

dbt Adapter

bigquery

dbt Power User version

0.11.6

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

wtfzambo avatar Mar 05 '23 22:03 wtfzambo