Skip to content

Commit

Permalink
revert unintentional breaking change in binary like columns
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Jan 4, 2025
1 parent 24b568b commit 4929f98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/api/src/python/query/sqlalchemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ def briefer_make_sqlalchemy_query():
break
if is_memoryview or is_bytes:
# convert to hex
df[column] = df[column].apply(lambda x: x.hex() if x is not None else None)
# convert to string
df[column] = df[column].apply(lambda x: str(x.tobytes() if is_memoryview else x) if x is not None else None)
continue
if are_all_non_null_values_strings:
Expand Down

0 comments on commit 4929f98

Please sign in to comment.