Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: optimize row merging #628

Merged
merged 25 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lints
  • Loading branch information
igorbernstein2 committed Aug 5, 2022
commit 0dcdec40beed3857e54ac3797dfd24dc8a636796
2 changes: 0 additions & 2 deletions tests/unit/test_row_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# limitations under the License.


import os

import mock
import pytest

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_row_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import proto
import pytest

from google.cloud.bigtable.row_data import PartialRowsData, PartialRowData
from google.cloud.bigtable.row_data import PartialRowsData, PartialRowData, InvalidChunk
from google.cloud.bigtable_v2.types.bigtable import ReadRowsResponse


Expand Down Expand Up @@ -70,7 +70,7 @@ def fake_read(*args, **kwargs):
try:
for row in PartialRowsData(fake_read, request=None):
actual_results.extend(extract_results_from_row(row))
except:
except (InvalidChunk, ValueError):
actual_results.append(ReadRowsTest.Result(error=True))

for expected, actual in zip_longest(test_case.results, actual_results):
Expand Down