use of com.questdb.griffin.lexer.model.IntrinsicModel in project questdb by bluestreak01.
the class QueryFilterAnalyserTest method testContradictingNullSearch.
@Test
public void testContradictingNullSearch() throws Exception {
IntrinsicModel m = modelOf("sym = null and sym != null and ex != 'blah'");
Assert.assertEquals(IntrinsicValue.FALSE, m.intrinsicValue);
assertFilter(m, "'blah'ex!=");
Assert.assertEquals("[]", m.keyValues.toString());
Assert.assertEquals("[]", m.keyValuePositions.toString());
}
use of com.questdb.griffin.lexer.model.IntrinsicModel in project questdb by bluestreak01.
the class QueryFilterAnalyserTest method testEqualsZeroOverlapWithIn2.
@Test
public void testEqualsZeroOverlapWithIn2() throws Exception {
IntrinsicModel m = modelOf("sym = 'z' and sym in ('x','y')");
Assert.assertEquals(IntrinsicValue.FALSE, m.intrinsicValue);
}
use of com.questdb.griffin.lexer.model.IntrinsicModel in project questdb by bluestreak01.
the class QueryFilterAnalyserTest method testTwoExactSameDates.
@Test
public void testTwoExactSameDates() throws Exception {
IntrinsicModel m = modelOf("timestamp = '2015-05-10T15:03:10.000Z' and timestamp = '2015-05-10T15:03:10.000Z' and timestamp = '2015-05-11'");
TestUtils.assertEquals("[]", intervalToString(m.intervals));
Assert.assertNull(m.filter);
Assert.assertEquals(IntrinsicValue.FALSE, m.intrinsicValue);
}
use of com.questdb.griffin.lexer.model.IntrinsicModel in project questdb by bluestreak01.
the class QueryFilterAnalyserTest method testExactDateVsInterval.
@Test
public void testExactDateVsInterval() throws Exception {
IntrinsicModel m = modelOf("timestamp = '2015-05-10T15:03:10.000Z' and timestamp = '2015-05-11'");
Assert.assertEquals(IntrinsicValue.FALSE, m.intrinsicValue);
Assert.assertNull(m.filter);
}
use of com.questdb.griffin.lexer.model.IntrinsicModel in project questdb by bluestreak01.
the class QueryFilterAnalyserTest method testDubiousNotEquals.
@Test
public void testDubiousNotEquals() throws Exception {
IntrinsicModel m = modelOf("ts != ts");
Assert.assertEquals(IntrinsicValue.FALSE, m.intrinsicValue);
}
Aggregations