Skip to content

Conversation

@chemelnucfin
Copy link
Contributor

@chemelnucfin chemelnucfin commented Nov 29, 2017

See #4414 and #4204

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 29, 2017
@chemelnucfin chemelnucfin added api: spanner Issues related to the Spanner API. type: cleanup An internal cleanup or hygiene concern. labels Nov 29, 2017
@chemelnucfin
Copy link
Contributor Author

@tseaver PTAL, thanks.

def __init__(self, response_iterator, source=None):
self._response_iterator = response_iterator
self._rows = [] # Fully-processed rows
self._processed_rows = [] # Fully-processed rows

This comment was marked as spam.

while True:
try:
streamed.consume_next()
streamed._consume_next()

This comment was marked as spam.

retrieved += len(streamed.rows)
streamed.rows[:] = ()
retrieved += len(streamed._rows)
streamed._rows[:] = ()

This comment was marked as spam.

Copy link
Contributor

@tseaver tseaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just delete the two system tests: they are redundant with those in other testcases.


@property
def rows(self):
def _rows(self):

This comment was marked as spam.

self._merge_values(values)

def consume_all(self):
def _consume_all(self):

This comment was marked as spam.

@chemelnucfin
Copy link
Contributor Author

@vkedia @tseaver PTAL, thanks.

self.assertIsNone(result_set._source)

result_set._consume_all()
# result_set._consume_all()

This comment was marked as spam.

This comment was marked as spam.

# result_set._consume_all()

self.assertEqual(list(result_set._rows), VALUES)
self.assertEqual(list(result_set), VALUES)

This comment was marked as spam.

@chemelnucfin
Copy link
Contributor Author

I just changed the _rows to list. I will put that in another PR.

@chemelnucfin chemelnucfin merged commit 460b606 into googleapis:master Dec 13, 2017
@chemelnucfin chemelnucfin deleted the spanner_rows_rename branch December 13, 2017 21:34
@tseaver tseaver mentioned this pull request Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement. type: cleanup An internal cleanup or hygiene concern.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants