Skip to content

Commit

Permalink
Merge pull request #1 from rafalpotempa/fix-large-list-mapping
Browse files Browse the repository at this point in the history
Fix Large List mapping
  • Loading branch information
xando authored Jul 4, 2024
2 parents 0fcfdc8 + 67b1c94 commit a1c41ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyarrow-bigquery"
version = "0.5.4"
version = "0.5.5"
description = "An extension library to write to and read from BigQuery tables as PyArrow tables."
authors = [{ name = "Sebastian Pawluś" }]
readme = "README.md"
Expand Down Expand Up @@ -33,4 +33,4 @@ ignore_missing_imports = true
exclude = [".git"]

line-length = 120
indent-width = 4
indent-width = 4
2 changes: 1 addition & 1 deletion src/pyarrow/bigquery/write/pa_to_bq.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def emit(schema):
field_mode = "NULLABLE" if field.nullable else "REQUIRED"
field_type = field.type

if pa.types.is_list(field_type):
if pa.types.is_list(field_type) or pa.types.is_large_list(field_type):
field_mode = "REPEATED"
field_type = field.type.value_type

Expand Down
2 changes: 1 addition & 1 deletion src/pyarrow/bigquery/write/pa_to_pb.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def emit(schema, message_name):
_repeated = False
_type = field.type

if pa.types.is_list(_type):
if pa.types.is_list(_type) or pa.types.is_large_list(_type):
_repeated = True
_type = field.type.value_type

Expand Down

0 comments on commit a1c41ed

Please sign in to comment.