use of io.confluent.ksql.execution.plan.StreamGroupBy in project ksql by confluentinc.
the class StepSchemaResolverTest method shouldResolveSchemaForStreamGroupBy.
@Test
public void shouldResolveSchemaForStreamGroupBy() {
// Given:
final StreamGroupBy<?> step = new StreamGroupBy<>(PROPERTIES, streamSource, formats, ImmutableList.of(new UnqualifiedColumnReferenceExp(Optional.empty(), ORANGE_COL)));
// When:
final LogicalSchema result = resolver.resolve(step, SCHEMA);
// Then:
assertThat(result, is(LogicalSchema.builder().keyColumn(ORANGE_COL, SqlTypes.INTEGER).valueColumns(SCHEMA.value()).build()));
}
Aggregations