Skip to content

Commit

Permalink
don't quote NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Chatterjee committed May 9, 2024
1 parent 8db2be5 commit bae37f2
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 bae37f2

Please sign in to comment.