From 3f9abdb720c8b58a1c780b2f2271a63d470560f5 Mon Sep 17 00:00:00 2001 From: "paul.marcombes" Date: Fri, 22 Nov 2024 22:16:39 +0000 Subject: [PATCH] bigfun: doc: do not show from with_clause in case of table function --- bigfun/templates/bigfunction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigfun/templates/bigfunction.md b/bigfun/templates/bigfunction.md index 1df3b60c..db63b1cd 100644 --- a/bigfun/templates/bigfunction.md +++ b/bigfun/templates/bigfunction.md @@ -147,7 +147,7 @@ create temp table sample_data as ( ); {% endif %} {% if type == 'procedure' %}call{% elif type == 'table_function' %}select * from{% else %}select{% endif %} {{ project }}.{{ dataset }}.{{ name }}({% for argument in example.arguments %}{{ argument | replace('{BIGFUNCTIONS_DATASET}', project + '.' + dataset ) | replace('\n', '\n ') }}{% if not loop.last %}, {% endif %}{% endfor %}){% if type == 'procedure' %};{% elif 'output' in bigfunction and type != 'table_function' %} as {{ output.name }}{% endif %} -{%- if example.with_clause is defined or example.temp_table is defined %} +{%- if (example.with_clause is defined or example.temp_table is defined) and type != 'table_function' %} from sample_data {% endif %} {% if type == 'procedure' and template %}select html from bigfunction_result;{% endif %}