This repository was archived by the owner on Mar 31, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -3545,26 +3545,32 @@ 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 ("42" )
3548+ key_parts = struct_pb2 .ListValue (). values . add ( string_value = "42" )
35493549 )
35503550 ]
35513551 ),
35523552 spanner_database_admin .SplitPoints (
35533553 index = "SingersByFirstLastName" ,
35543554 keys = [
35553555 spanner_database_admin .SplitPoints .Key (
3556- key_parts = struct_pb2 .ListValue ("John" , "Doe" )
3556+ key_parts = struct_pb2 .ListValue ().values .extend ([
3557+ struct_pb2 .Value (string_value = "John" ),
3558+ struct_pb2 .Value (string_value = "Doe" )
3559+ ])
35573560 )
35583561 ]
35593562 ),
35603563 spanner_database_admin .SplitPoints (
35613564 index = "SingersByFirstLastName" ,
35623565 keys = [
35633566 spanner_database_admin .SplitPoints .Key (
3564- key_parts = struct_pb2 .ListValue ("38" )
3567+ key_parts = struct_pb2 .ListValue (). values . add ( string_value = "38" )
35653568 ),
35663569 spanner_database_admin .SplitPoints .Key (
3567- key_parts = struct_pb2 .ListValue ("Jane" , "Doe" )
3570+ key_parts = struct_pb2 .ListValue ().values .extend ([
3571+ struct_pb2 .Value (string_value = "Jane" ),
3572+ struct_pb2 .Value (string_value = "Doe" )
3573+ ])
35683574 )
35693575 ]
35703576 )
You can’t perform that action at this time.
0 commit comments