Skip to content

Commit

Permalink
added sample row keys
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Oct 6, 2023
1 parent 319aa63 commit f053125
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test_proxy/handlers/client_handler_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,8 @@ async def ReadModifyWriteRow(self, request, **kwargs):

@client_handler.error_safe
async def SampleRowKeys(self, request, **kwargs):
raise NotImplementedError()
table_id = request["table_name"].split("/")[-1]
instance = self.client.instance(self.instance_id)
table = instance.table(table_id)
response = list(table.sample_row_keys())
return response

0 comments on commit f053125

Please sign in to comment.