googleapis / googleapis/google-cloud-cpp

Generalize `RowKeyType::clear()`

Open
#15,248 0 comments 0 reactions 0 assignees View on GitHub
api: bigtable type: cleanup
Dominant language
C++
Stars
659
Forks
462
Avg merge
1d 2h
Merged PRs (30d)
89

Description

`bigtable::RowKeyType` is a `std::string` in OSS-land, and an `absl::Cord` in Google-land.

`absl::Cord::clear()` is deprecated, in favor of `absl::Cord::Clear()`. `std::string::Clear()` is not a thing.

We need to add a new `Clear(RowKeyType&)` function to this file:

https://github.com/googleapis/google-cloud-cpp/blob/main/google/cloud/bigtable/internal/google_bytes_traits.h

which calls `std::string::clear()` in OSS-land, and `absl::Cord::Clear()` in Google-land.

This unblocks a LSC in Google-land.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.