Skip to content

Commit 90a89dc

Browse files
authored
fix and issue when seed with number values of 0 would get converted to NULL (#71)
1 parent 9ec4bb6 commit 90a89dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbt/adapters/hive/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def add_query(
351351

352352
if bindings:
353353
# to avoid None as being treated as string, convert it to empty string
354-
bindings = map(lambda x: x if x else "", bindings)
354+
bindings = list(map(lambda x: x if x else x if x != None and len(str(x)) > 0 else "", bindings))
355355

356356
query_exception = None
357357
try:

0 commit comments

Comments
 (0)