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
im trying to mock data using a macro following the example
{% macro expected_invoices() %}
(
{% set records = [
[1,"aaaaaaaa","type"]
] %}
{% for record in records %}
select {{ record[0] }} as sys_id, '{{ record[1] }}' as id , '{{ record[2] }}' as type
{% if not loop.last %}
union all
{% endif %}
{% endfor %}
) expected_invoices
{% endmacro %}
but am getting the error when running of
Macro test_equality expected a Relation but received the value:
14:35:41 (
select 1 as sys_id, 'aaaaaaaa' as id, 'FAC' as type
) as expected_invoices
i have this set up in my .yml
- dbt_datamocktool.unit_test:
input_mapping:
ref('table'): "{{ input_invoices() }}"
expected_output: "{{ expected_invoices() }}"
name: "expecting_type_of"
description: "testing mocking data fro dbt unit testing"
compare_columns:
- sys_id
- id
- type
am i missing something else anywhere ? any help would be much appreciated
dbt version 1.3 and im using trino
The text was updated successfully, but these errors were encountered:
im trying to mock data using a macro following the example
but am getting the error when running of
Macro test_equality expected a Relation but received the value:
14:35:41 (
select 1 as sys_id, 'aaaaaaaa' as id, 'FAC' as type
) as expected_invoices
i have this set up in my .yml
am i missing something else anywhere ? any help would be much appreciated
dbt version 1.3 and im using trino
The text was updated successfully, but these errors were encountered: