use of io.confluent.ksql.execution.expression.tree.QualifiedColumnReferenceExp in project ksql by confluentinc.
the class AggregateAnalyzerTest method shouldThrowOnQualifiedColumnReference.
@Test
public void shouldThrowOnQualifiedColumnReference() {
// Given:
givenSelectExpression(new QualifiedColumnReferenceExp(SourceName.of("Fred"), SystemColumns.WINDOWEND_NAME));
// When:
assertThrows(UnsupportedOperationException.class, () -> analyzer.analyze(analysis, selects));
}
use of io.confluent.ksql.execution.expression.tree.QualifiedColumnReferenceExp in project ksql by confluentinc.
the class ExpressionTreeRewriterTest method shouldRewriteQualifiedColumnReferenceUsingPlugin.
@Test
public void shouldRewriteQualifiedColumnReferenceUsingPlugin() {
// Given:
final QualifiedColumnReferenceExp expression = new QualifiedColumnReferenceExp(SourceName.of("bar"), ColumnName.of("foo"));
// When/Then:
shouldRewriteUsingPlugin(expression);
}
use of io.confluent.ksql.execution.expression.tree.QualifiedColumnReferenceExp in project ksql by confluentinc.
the class ExpressionTreeRewriterTest method shouldRewriteQualifiedColumnReference.
@Test
public void shouldRewriteQualifiedColumnReference() {
// Given:
final QualifiedColumnReferenceExp expression = new QualifiedColumnReferenceExp(SourceName.of("bar"), ColumnName.of("foo"));
// When:
final Expression rewritten = expressionRewriter.rewrite(expression, context);
// Then:
assertThat(rewritten, is(expression));
}
Aggregations