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

feat: Add support for renaming tables in schema translator #3185

Merged
merged 5 commits into from Aug 19, 2021

Conversation

vermas2012
Copy link
Member

@vermas2012 vermas2012 commented Aug 9, 2021

This is a bigtable-1.x merge for PR #3154
#3154

vermas2012 and others added 2 commits August 3, 2021 10:27
…s#3154)

Remove any column family transformations and reduce the transoformer to support table names only.

We don't want to encourage column family renames as there are many implications of column family renames. Mainly,
1. read filters won't work as they involve regexes
2. Migration validation jobs won't work as the column families will be different and hashes won't match.

There are complex ways to solve these issues but we can't see use-cases for column family renames that justify making this migration workflow complex around creation, querying and validation.

(cherry picked from commit 7d49bba)
@vermas2012 vermas2012 requested review from a team as code owners August 9, 2021 17:05
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/java-bigtable-hbase API. label Aug 9, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 9, 2021
@vermas2012 vermas2012 added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:run Add this label to force Kokoro to re-run the tests. labels Aug 9, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2021
@vermas2012 vermas2012 requested a review from kolea2 August 10, 2021 17:50
@vermas2012 vermas2012 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2021
@igorbernstein2 igorbernstein2 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 13, 2021
Copy link
Collaborator

@kolea2 kolea2 left a comment

Choose a reason for hiding this comment

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

LGTM after small doc fixes

@vermas2012 vermas2012 added the automerge Merge the pull request once unit tests and other checks pass. label Aug 19, 2021
@vermas2012 vermas2012 requested review from kolea2 and igorbernstein2 and removed request for igorbernstein2 August 19, 2021 15:40
@vermas2012 vermas2012 merged commit e294c1e into googleapis:bigtable-1.x Aug 19, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 19, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Aug 19, 2021
Bringing changes done to bigtable-1.x in #3185 to master. 

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bu g/issue](https://github.com/googleapis/java-bigtable-hbase/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️
mutianf pushed a commit to mutianf/java-bigtable-hbase that referenced this pull request Sep 20, 2022
…s#3185)

* feat: Add support for renaming tables in schema translator (googleapis#3154)

Remove any column family transformations and reduce the transoformer to support table names only.

We don't want to encourage column family renames as there are many implications of column family renames. Mainly,
1. read filters won't work as they involve regexes
2. Migration validation jobs won't work as the column families will be different and hashes won't match.

There are complex ways to solve these issues but we can't see use-cases for column family renames that justify making this migration workflow complex around creation, querying and validation.

(cherry picked from commit 7d49bba)

* Fix javax.annotation build issues.

* Fix version number in the comments

* Fix the bad merge.

* Incorporating PR feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable-hbase API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants