-{% if type == 'procedure' %}call{% elif type == 'table_function' %}select * from{% else %}select{% endif %} {{ project }}.{{ dataset }}.{{ name }}({% for argument in example.arguments %}{% if argument is none or argument == 'null' %}null{% elif arguments[loop.index0]['type'] == 'string' %}{{ argument | trim('"') | trim("'") | tojson() | replace('{BIGFUNCTIONS_DATASET}', project + '.' + dataset ) | replace('\n', '\n ') }}{% else %}{{ argument | replace('{BIGFUNCTIONS_DATASET}', project + '.' + dataset ) | replace('\n', '\n ') }}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}){% if type == 'procedure' %};{% elif 'output' in bigfunction and type != 'table_function' %} as {{ output.name }}{% endif %}
0 commit comments