Skip to content

Commit

Permalink
Tweak test case 'WHERE' clause
Browse files Browse the repository at this point in the history
  • Loading branch information
georgecma committed Jun 17, 2024
1 parent 0db6193 commit cee17f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ public void testReadWithQueryProvider() throws Exception {
public void testReadWithQueryProviderWithWhereQuery() throws Exception {
String query =
String.format(
"select person_id, writetime(person_name) from %s.%s WHERE TRUE",
"select person_id, writetime(person_name) from %s.%s where person_id=10 AND person_department='logic'",
CASSANDRA_KEYSPACE, CASSANDRA_TABLE);

PCollection<Scientist> output =
Expand All @@ -561,7 +561,7 @@ public void testReadWithQueryProviderWithWhereQuery() throws Exception {
.withCoder(SerializableCoder.of(Scientist.class))
.withEntity(Scientist.class));

PAssert.thatSingleton(output.apply("Count", Count.globally())).isEqualTo(NUM_ROWS);
PAssert.thatSingleton(output.apply("Count", Count.globally())).isEqualTo(1L);
PAssert.that(output)
.satisfies(
input -> {
Expand Down

0 comments on commit cee17f2

Please sign in to comment.