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

Commit 5270edd

Browse files
committed
fixed the build error
1 parent 7059408 commit 5270edd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/samples/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,7 +3545,7 @@ def add_split_points(instance_id, database_id):
35453545
table="Singers",
35463546
keys=[
35473547
spanner_database_admin.SplitPoints.Key(
3548-
key_parts=struct_pb2.ListValue().values.add(string_value="42")
3548+
key_parts=struct_pb2.ListValue().values.add(struct_pb2.Value(string_value="42"))
35493549
)
35503550
]
35513551
),
@@ -3564,7 +3564,7 @@ def add_split_points(instance_id, database_id):
35643564
index="SingersByFirstLastName",
35653565
keys=[
35663566
spanner_database_admin.SplitPoints.Key(
3567-
key_parts=struct_pb2.ListValue().values.add(string_value="38")
3567+
key_parts=struct_pb2.ListValue().values.add(struct_pb2.Value(string_value="38"))
35683568
),
35693569
spanner_database_admin.SplitPoints.Key(
35703570
key_parts=struct_pb2.ListValue().values.extend([

0 commit comments

Comments
 (0)