Skip to content

Commit

Permalink
Merge pull request #120 from DalgoT4D/dont-quote-null
Browse files Browse the repository at this point in the history
don't quote NULL
  • Loading branch information
fatchat authored May 9, 2024
2 parents 8db2be5 + bae37f2 commit c27d61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt_automation/utils/columnutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "'"
Expand Down

0 comments on commit c27d61a

Please sign in to comment.