From b22e7f2fc017cfc3ffc0f6eeb3f46c069289fd26 Mon Sep 17 00:00:00 2001 From: Elon Gliksberg Date: Wed, 11 Oct 2023 11:31:28 +0300 Subject: [PATCH] Bugfix seeds don't have compiled codes. --- macros/utils/graph/get_compiled_code.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/utils/graph/get_compiled_code.sql b/macros/utils/graph/get_compiled_code.sql index 97a05fe78..bf4ae62ac 100644 --- a/macros/utils/graph/get_compiled_code.sql +++ b/macros/utils/graph/get_compiled_code.sql @@ -2,7 +2,7 @@ {% set compiled_code = adapter.dispatch("get_compiled_code", "elementary")(node) %} {% set max_column_size = elementary.get_column_size() %} - {% if as_column_value and max_column_size and compiled_code | length > max_column_size %} + {% if as_column_value and max_column_size and compiled_code and compiled_code | length > max_column_size %} {% do return(elementary.get_compiled_code_too_long_err_msg()) %} {% endif %}