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

[BEAM-6324] Remove withWhere from CassandraIO (superceded by withQuery) #8153

Merged
merged 1 commit into from Mar 27, 2019

Conversation

iemejia
Copy link
Member

@iemejia iemejia commented Mar 27, 2019

@iemejia iemejia requested a review from echauchot March 27, 2019 16:12
@@ -305,26 +285,6 @@ public void testReadWithQuery() throws Exception {
pipeline.run();
}

@Test
public void testReadWithValueProvider() throws Exception {
Copy link
Member Author

@iemejia iemejia Mar 27, 2019

Choose a reason for hiding this comment

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

This one was removed because the functionality is already covered by delegation from the different with methods e.g. withTable(String) -> withTable(ValueProvider).
And we win some performance because of one less test that does not validate anything new.

@@ -106,12 +105,6 @@ public void testWriteThenRead() {
runRead();
}

@Test
public void testWriteThenReadWithWhere() {
Copy link
Member Author

Choose a reason for hiding this comment

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

This one was removed because the functionality is already tested in the unit tests via withQuery, and because ITs it could be easily subsumed by testWriteThenReadWithWhere

@iemejia iemejia requested a review from pabloem March 27, 2019 19:39
@pabloem
Copy link
Member

pabloem commented Mar 27, 2019

This is reasonable. We've synced offline, and the short answer is that allowing the user to compose their queries is much more reasonable. Thanks Ismael.

@pabloem
Copy link
Member

pabloem commented Mar 27, 2019

LGTM.

@pabloem pabloem merged commit 7928370 into apache:master Mar 27, 2019
@iemejia
Copy link
Member Author

iemejia commented Mar 27, 2019

Thanks Pablo for the eager review. I will take care of the ticket now.

@iemejia iemejia deleted the BEAM-6324-remove-wit-where branch April 2, 2019 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants