use of io.crate.analyze.WhereClause in project crate by crate.
the class WhereClauseAnalyzerTest method testGtGenColOptimization.
@Test
public void testGtGenColOptimization() throws Exception {
WhereClause whereClause = analyzeSelectWhere("select * from generated_col where ts > '2015-01-02T12:00:00'");
assertThat(whereClause.partitions().size(), is(1));
assertThat(whereClause.partitions().get(0), is(new PartitionName(new RelationName("doc", "generated_col"), Arrays.asList("1420156800000", "-2")).asIndexName()));
}
Aggregations