From bae37f264951e020a4f7116fd0ac0bc5657268f3 Mon Sep 17 00:00:00 2001 From: Rohit Chatterjee Date: Thu, 9 May 2024 18:33:30 +0530 Subject: [PATCH] don't quote NULL --- dbt_automation/utils/columnutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_automation/utils/columnutils.py b/dbt_automation/utils/columnutils.py index 9d391de..978679e 100644 --- a/dbt_automation/utils/columnutils.py +++ b/dbt_automation/utils/columnutils.py @@ -62,7 +62,7 @@ def quote_columnname(colname: str, warehouse: str): def quote_constvalue(value: str, warehouse: str): """encloses a constant string value inside proper quotes""" if value is None or value.strip().lower() == "none": - return "'" + "NULL" + "'" + return "NULL" if warehouse == "postgres": return "'" + value + "'"