Skip to content

Commit 9f77629

Browse files
1 parent 1e1c77f commit 9f77629

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎pandas_gbq/schema/pyarrow_to_bigquery.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def arrow_type_to_bigquery_field(name, type_) -> Optional[schema.SchemaField]:
4747
else:
4848
return schema.SchemaField(name, "TIMESTAMP")
4949

50-
5150
detected_type = _ARROW_SCALAR_IDS_TO_BQ.get(type_.id, None)
5251
if detected_type is not None:
5352
return schema.SchemaField(name, detected_type)

‎tests/unit/schema/test_pyarrow_to_bigquery.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Use of this source code is governed by a BSD-style
33
# license that can be found in the LICENSE file.
44

5+
from google.cloud import bigquery
56
import pyarrow
67
import pytest
78

8-
from google.cloud import bigquery
99
from pandas_gbq.schema import pyarrow_to_bigquery
1010

1111

@@ -34,7 +34,9 @@
3434
),
3535
)
3636
def test_arrow_type_to_bigquery_field_scalar_types(pyarrow_type, bigquery_type):
37-
field: bigquery.SchemaField = pyarrow_to_bigquery.arrow_type_to_bigquery_field("test_name", pyarrow_type)
37+
field: bigquery.SchemaField = pyarrow_to_bigquery.arrow_type_to_bigquery_field(
38+
"test_name", pyarrow_type
39+
)
3840
assert field.name == "test_name"
3941
assert field.field_type == bigquery_type
4042

0 commit comments

Comments
 (0)