Skip to content

Commit

Permalink
fix max args bug (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Lysikov <s.lysikov@space307.com>
  • Loading branch information
barloc and Stanislav Lysikov committed Mar 21, 2022
1 parent bec9908 commit 31dcc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/vertica/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def date_function(cls):
@classmethod
def convert_text_type(cls, agate_table, col_idx):
column = agate_table.columns[col_idx]
lens = (len(d.encode("utf-8")) for d in column.values_without_nulls())
lens = [len(d.encode("utf-8")) for d in column.values_without_nulls()]
max_len = max(lens) if lens else 64
return "varchar({})".format(max_len)

Expand Down

0 comments on commit 31dcc04

Please sign in to comment.