Skip to content

Commit

Permalink
fix(python): type conversion for unicode & binary (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Feb 19, 2024
1 parent d048d4b commit ce96e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/databend_udf/udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,9 @@ def _field_type_to_string(field: pa.Field) -> str:
return "DATE"
elif pa.types.is_timestamp(t):
return "TIMESTAMP"
elif pa.types.is_large_unicode(t):
elif pa.types.is_large_unicode(t) or pa.types.is_unicode(t):
return "VARCHAR"
elif pa.types.is_large_binary(t):
elif pa.types.is_large_binary(t) or pa.types.is_binary(t):
if _field_is_variant(field):
return "VARIANT"
else:
Expand Down

0 comments on commit ce96e8a

Please sign in to comment.