Skip to content

Commit e131b6d

Browse files
committed
update test
1 parent 2a81ef9 commit e131b6d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

google/cloud/bigquery/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __init__(
221221
range_element_type: Union[FieldElementType, str, None] = None,
222222
rounding_mode: Union[enums.RoundingMode, str, None] = None,
223223
foreign_type_definition: Optional[str] = None,
224-
timestamp_precision: Optional[int] = None,
224+
timestamp_precision: Union[enums.TimestampPrecision, int, None] = None,
225225
):
226226
self._properties: Dict[str, Any] = {
227227
"name": name,

tests/system/test_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
bigquery.SchemaField("full_name", "STRING", mode="REQUIRED"),
7979
bigquery.SchemaField("age", "INTEGER", mode="REQUIRED"),
8080
bigquery.SchemaField(
81-
"time_pico", "TIMESTAMP", mode="REQUIRED", timestamp_precision=12
81+
"time_pico",
82+
"TIMESTAMP",
83+
mode="REQUIRED",
84+
timestamp_precision=enums.TimestampPrecision.PICOSECOND,
8285
),
8386
]
8487
CLUSTERING_SCHEMA = [

0 commit comments

Comments
 (0)