Skip to content

Commit

Permalink
fix(duckdb): handle arrow UUID values coming back as bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 9, 2024
1 parent 50746ea commit d12c2c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibis/formats/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ def convert(value):
return value
elif isinstance(value, UUID):
return value
elif isinstance(value, bytes):
return UUID(bytes=value)

Check warning on line 387 in ibis/formats/pandas.py

View check run for this annotation

Codecov / codecov/patch

ibis/formats/pandas.py#L387

Added line #L387 was not covered by tests
return UUID(value)

return convert
Expand Down

0 comments on commit d12c2c8

Please sign in to comment.