Skip to content

Instantly share code, notes, and snippets.

@atharvai
Created May 24, 2018 09:27
Show Gist options
  • Save atharvai/cba0a81e17ff7d7e1bd1ef0afbcbcea4 to your computer and use it in GitHub Desktop.
Save atharvai/cba0a81e17ff7d7e1bd1ef0afbcbcea4 to your computer and use it in GitHub Desktop.
This fails :(
{% macro test_zero_table(schema, table, print_table=True) %}
{%- call statement('test_result', fetch_result=True) -%}
-- data test
select 1 as id, 'Drew' as name
{%- endcall -%}
{%- set res = load_result('test_result')['table'] -%}
{% set _ = res.print_table() %}
select 'pass' as status limit 0
{% endmacro %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment