Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 55a085f

Browse files
committed
build error fixes
1 parent 2946eff commit 55a085f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

samples/samples/snippets.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from google.cloud.spanner_v1 import DirectedReadOptions, param_types
3434
from google.cloud.spanner_v1.data_types import JsonObject
3535
from google.protobuf import field_mask_pb2 # type: ignore
36+
from google.protobuf import struct_pb2 # type: ignore
3637

3738
from testdata import singer_pb2
3839

@@ -3540,23 +3541,23 @@ def add_split_points(instance_id, database_id):
35403541
# Index split with table key part
35413542
split_points=[
35423543
spanner_database_admin.SplitPoints(
3543-
table="Singers"
3544+
table="Singers",
35443545
keys=[
35453546
spanner_database_admin.SplitPoints.Key(
35463547
key_parts=struct_pb2.ListValue("42")
35473548
)
35483549
]
35493550
),
35503551
spanner_database_admin.SplitPoints(
3551-
index="SingersByFirstLastName"
3552+
index="SingersByFirstLastName",
35523553
keys=[
35533554
spanner_database_admin.SplitPoints.Key(
35543555
key_parts=struct_pb2.ListValue("John","Doe")
35553556
)
35563557
]
35573558
),
35583559
spanner_database_admin.SplitPoints(
3559-
index="SingersByFirstLastName"
3560+
index="SingersByFirstLastName",
35603561
keys=[
35613562
spanner_database_admin.SplitPoints.Key(
35623563
key_parts=struct_pb2.ListValue("38")
@@ -3565,9 +3566,8 @@ def add_split_points(instance_id, database_id):
35653566
key_parts=struct_pb2.ListValue("Jane","Doe")
35663567
)
35673568
]
3568-
),
3569-
3570-
]
3569+
)
3570+
]
35713571
)
35723572

35733573
operation = database_admin_api.add_split_points(request)

0 commit comments

Comments
 (0)