use of io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1 in project ksql by confluentinc.
the class SourceBuilderV1Test method givenMultiColumnSourceStream.
private void givenMultiColumnSourceStream(final int pseudoColumnVersion) {
when(buildContext.buildKeySerde(any(), any(), any())).thenReturn(keySerde);
givenConsumed(consumed, keySerde);
streamSource = new StreamSource(new ExecutionStepPropertiesV1(ctx), TOPIC_NAME, Formats.of(keyFormatInfo, valueFormatInfo, KEY_FEATURES, VALUE_FEATURES), TIMESTAMP_COLUMN, MULTI_COL_SOURCE_SCHEMA, OptionalInt.of(pseudoColumnVersion));
}
use of io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1 in project ksql by confluentinc.
the class SourceBuilderV1Test method givenWindowedSourceTable.
private void givenWindowedSourceTable(final int pseudoColumnVersion) {
when(buildContext.buildKeySerde(any(), any(), any(), any())).thenReturn(windowedKeySerde);
givenConsumed(consumedWindowed, windowedKeySerde);
givenConsumed(consumedWindowed, windowedKeySerde);
windowedTableSource = new WindowedTableSource(new ExecutionStepPropertiesV1(ctx), TOPIC_NAME, Formats.of(keyFormatInfo, valueFormatInfo, KEY_FEATURES, VALUE_FEATURES), windowInfo, TIMESTAMP_COLUMN, SOURCE_SCHEMA, OptionalInt.of(pseudoColumnVersion));
}
use of io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1 in project ksql by confluentinc.
the class SourceBuilderTest method givenUnwindowedSourceTable.
private void givenUnwindowedSourceTable() {
when(buildContext.buildKeySerde(any(), any(), any())).thenReturn(keySerde);
givenConsumed(consumed, keySerde);
tableSource = new TableSource(new ExecutionStepPropertiesV1(ctx), TOPIC_NAME, formats, TIMESTAMP_COLUMN, SOURCE_SCHEMA, SystemColumns.ROWPARTITION_ROWOFFSET_PSEUDOCOLUMN_VERSION, formats);
}
use of io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1 in project ksql by confluentinc.
the class PlanSummaryTest method givenStep.
private void givenStep(final ExecutionStep<?> step, final String ctx, final LogicalSchema schema, final ExecutionStep<?>... sources) {
final ExecutionStepPropertiesV1 props = mock(ExecutionStepPropertiesV1.class);
when(step.getProperties()).thenReturn(props);
when(props.getQueryContext()).thenReturn(new QueryContext.Stacker().push(ctx).getQueryContext());
when(schemaResolver.resolve(same(step), any())).thenReturn(schema);
when(schemaResolver.resolve(same(step), any(), any())).thenReturn(schema);
when(step.getSources()).thenReturn(Arrays.asList(sources));
}
use of io.confluent.ksql.execution.plan.ExecutionStepPropertiesV1 in project ksql by confluentinc.
the class SourceBuilderTest method givenMultiColumnSourceTable.
private void givenMultiColumnSourceTable() {
when(buildContext.buildKeySerde(any(), any(), any())).thenReturn(keySerde);
givenConsumed(consumed, keySerde);
tableSource = new TableSource(new ExecutionStepPropertiesV1(ctx), TOPIC_NAME, formats, TIMESTAMP_COLUMN, MULTI_COL_SOURCE_SCHEMA, SystemColumns.ROWPARTITION_ROWOFFSET_PSEUDOCOLUMN_VERSION, formats);
}
Aggregations