Search in sources :

Example 1 with Row

use of io.confluent.ksql.parser.tree.Row in project ksql by confluentinc.

the class ExpressionFormatterTest method shouldFormatRow.

@Test
public void shouldFormatRow() {
    final String result = ExpressionFormatter.formatExpression(new Row(Arrays.asList(new LongLiteral("1"), new QualifiedNameReference(QualifiedName.of(Arrays.asList("a", "b"))))));
    assertThat(result, equalTo("ROW (1, a.b)"));
}
Also used : LongLiteral(io.confluent.ksql.parser.tree.LongLiteral) Row(io.confluent.ksql.parser.tree.Row) QualifiedNameReference(io.confluent.ksql.parser.tree.QualifiedNameReference) Test(org.junit.Test)

Aggregations

LongLiteral (io.confluent.ksql.parser.tree.LongLiteral)1 QualifiedNameReference (io.confluent.ksql.parser.tree.QualifiedNameReference)1 Row (io.confluent.ksql.parser.tree.Row)1 Test (org.junit.Test)1