use of io.confluent.ksql.parser.tree.Extract in project ksql by confluentinc.
the class ExpressionFormatterTest method shouldFormatExtract.
@Test
public void shouldFormatExtract() {
final String result = ExpressionFormatter.formatExpression(new Extract(new StringLiteral("17/12/2017"), Extract.Field.DAY));
assertThat(result, equalTo("EXTRACT(DAY FROM '17/12/2017')"));
}
Aggregations