Skip to content

Commit a1c41ed

Browse files
authored
Merge pull request #1 from rafalpotempa/fix-large-list-mapping
Fix Large List mapping
2 parents 0fcfdc8 + 67b1c94 commit a1c41ed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyarrow-bigquery"
3-
version = "0.5.4"
3+
version = "0.5.5"
44
description = "An extension library to write to and read from BigQuery tables as PyArrow tables."
55
authors = [{ name = "Sebastian Pawluś" }]
66
readme = "README.md"
@@ -33,4 +33,4 @@ ignore_missing_imports = true
3333
exclude = [".git"]
3434

3535
line-length = 120
36-
indent-width = 4
36+
indent-width = 4

src/pyarrow/bigquery/write/pa_to_bq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def emit(schema):
1313
field_mode = "NULLABLE" if field.nullable else "REQUIRED"
1414
field_type = field.type
1515

16-
if pa.types.is_list(field_type):
16+
if pa.types.is_list(field_type) or pa.types.is_large_list(field_type):
1717
field_mode = "REPEATED"
1818
field_type = field.type.value_type
1919

src/pyarrow/bigquery/write/pa_to_pb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def emit(schema, message_name):
3737
_repeated = False
3838
_type = field.type
3939

40-
if pa.types.is_list(_type):
40+
if pa.types.is_list(_type) or pa.types.is_large_list(_type):
4141
_repeated = True
4242
_type = field.type.value_type
4343

0 commit comments

Comments
 (0)