[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: consolidate PyarrowVersions helpers #1679

Merged
merged 16 commits into from
Oct 18, 2023
Prev Previous commit
Next Next commit
coverage
  • Loading branch information
Linchin committed Oct 16, 2023
commit 1903dae12d4fc02f3d10ed5117cf43be901b7a9b
2 changes: 0 additions & 2 deletions google/cloud/bigquery/_pyarrow_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def pyarrow_timestamp():
"STRING": pyarrow.string,
"TIME": pyarrow_time,
"TIMESTAMP": pyarrow_timestamp,
"BIGNUMERIC": pyarrow_bignumeric,
}

_ARROW_SCALAR_IDS_TO_BQ = {
Expand All @@ -94,7 +93,6 @@ def pyarrow_timestamp():
pyarrow.string().id: "STRING", # also alias for pyarrow.utf8()
# The exact scale and precision don't matter, see below.
pyarrow.decimal128(38, scale=9).id: "NUMERIC",
tswast marked this conversation as resolved.
Show resolved Hide resolved
pyarrow.decimal256(76, scale=38).id: "BIGNUMERIC",
}

# Adds bignumeric support only if pyarrow version >= 3.0.0
Expand Down