Skip to content

Conversation

@chemelnucfin
Copy link
Contributor

I'm separating the tests into different PRs to minimize the damage. I plan to do the refactor once all the tests are all in and I'll do it separately so I don't change too much code at once.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 18, 2017
@chemelnucfin chemelnucfin force-pushed the spanner_range_single_keys_index branch from a754bd7 to 317fbcc Compare November 18, 2017 12:45
@chemelnucfin chemelnucfin changed the title Spanner: range single keys index Spanner: Range single keys index Nov 18, 2017
@dhermes dhermes added the api: spanner Issues related to the Spanner API. label Nov 22, 2017
)
selected = ([expected[keyrow]] +
expected[indices[index][0]:indices[index][1]])
self.assertEqual(rows, selected)

This comment was marked as spam.

@tseaver tseaver mentioned this pull request Dec 4, 2017
19 tasks
@chemelnucfin chemelnucfin force-pushed the spanner_range_single_keys_index branch from 317fbcc to d0078d1 Compare December 5, 2017 00:24
@chemelnucfin
Copy link
Contributor Author

@tseaver PTAL, thanks.

columns = self.COLUMNS[1], self.COLUMNS[2]
session, committed = self._set_up_table(row_count)
self.to_delete.append(session)
expected = [[row[1], row[2]] for row in self._row_data(row_count)]

This comment was marked as spam.

expected = [[row[1], row[2]] for row in self._row_data(row_count)]
keyrow, start, end = 1, 3, 7
start_index = [expected[start][0], expected[start][1]]
end_index = [expected[end][0], expected[end][1]]

This comment was marked as spam.

keyset,
index='name')
)
selected = ([expected[keyrow]] + expected[start : end+1])

This comment was marked as spam.

@chemelnucfin chemelnucfin force-pushed the spanner_range_single_keys_index branch 2 times, most recently from 7a38834 to 7c24064 Compare December 6, 2017 05:56
keyrow, start, end = 1, 3, 7
closed_closed = KeyRange(start_closed=expected[start],
end_closed=expected[end])
keys = [expected[keyrow],]

This comment was marked as spam.

This comment was marked as spam.

@chemelnucfin chemelnucfin force-pushed the spanner_range_single_keys_index branch from 1b17bce to 1eb298a Compare December 13, 2017 18:37
@chemelnucfin
Copy link
Contributor Author

I added "and" in the title to separate from another set of tests. Merging on green.

@chemelnucfin chemelnucfin force-pushed the spanner_range_single_keys_index branch from 1eb298a to ed567d8 Compare December 13, 2017 19:00
@chemelnucfin chemelnucfin merged commit 7bad261 into googleapis:master Dec 13, 2017
@chemelnucfin chemelnucfin deleted the spanner_range_single_keys_index branch December 13, 2017 19:10
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants