use of io.confluent.ksql.execution.plan.KGroupedStreamHolder in project ksql by confluentinc.
the class StreamGroupByBuilderV1Test method shouldReturnCorrectSchemaForGroupByKey.
@Test
public void shouldReturnCorrectSchemaForGroupByKey() {
// When:
final KGroupedStreamHolder result = builder.build(streamHolder, groupByKey);
// Then:
assertThat(result.getSchema(), is(SCHEMA));
}
use of io.confluent.ksql.execution.plan.KGroupedStreamHolder in project ksql by confluentinc.
the class StreamGroupByBuilderTest method shouldPerformGroupByCorrectly.
@Test
public void shouldPerformGroupByCorrectly() {
// When:
final KGroupedStreamHolder result = buildGroupBy(builder, streamHolder, groupBy);
// Then:
assertThat(result.getGroupedStream(), is(groupedStream));
verify(sourceStream).filter(any());
verify(filteredStream).groupBy(any(), same(grouped));
verifyNoMoreInteractions(filteredStream, sourceStream);
}
use of io.confluent.ksql.execution.plan.KGroupedStreamHolder in project ksql by confluentinc.
the class StreamGroupByBuilderTest method shouldReturnCorrectSchemaForGroupBy.
@Test
public void shouldReturnCorrectSchemaForGroupBy() {
// When:
final KGroupedStreamHolder result = buildGroupBy(builder, streamHolder, groupBy);
// Then:
assertThat(result.getSchema(), is(REKEYED_SCHEMA));
}
use of io.confluent.ksql.execution.plan.KGroupedStreamHolder in project ksql by confluentinc.
the class StreamGroupByBuilderTest method shouldReturnCorrectSchemaForGroupByKey.
@Test
public void shouldReturnCorrectSchemaForGroupByKey() {
// When:
final KGroupedStreamHolder result = builder.build(streamHolder, groupByKey);
// Then:
assertThat(result.getSchema(), is(SCHEMA));
}
use of io.confluent.ksql.execution.plan.KGroupedStreamHolder in project ksql by confluentinc.
the class StreamGroupByBuilderTest method shouldPerformGroupByKeyCorrectly.
@Test
public void shouldPerformGroupByKeyCorrectly() {
// When:
final KGroupedStreamHolder result = builder.build(streamHolder, groupByKey);
// Then:
assertThat(result.getGroupedStream(), is(groupedStream));
verify(sourceStream).groupByKey(grouped);
verifyNoMoreInteractions(sourceStream);
}
Aggregations