Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
normalize decimal arrow types
  • Loading branch information
TrevorBergeron committed Jan 28, 2025
commit 489896f492f305451d16c65c467081623fa116e3
4 changes: 4 additions & 0 deletions bigframes/core/local_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def arrow_type_replacements(type: pa.DataType) -> pa.DataType:
if pa.types.is_time64(type):
# This is potentially lossy, but BigFrames doesn't support ns
return pa.time64("us")
if pa.types.is_decimal128(type):
return pa.decimal128(38, 9)
if pa.types.is_decimal256(type):
return pa.decimal256(76, 38)
if pa.types.is_large_string(type):
# simple string type can handle the largest strings needed
return pa.string()
Expand Down