use of io.questdb.griffin.FunctionFactory in project questdb by bluestreak01.
the class EqDoubleFunctionFactoryTest method testRightNaNTimestampNaN.
@Test
public void testRightNaNTimestampNaN() throws SqlException {
FunctionFactory factory = getFunctionFactory();
ObjList<Function> args = new ObjList<>();
args.add(new TimestampConstant(Numbers.LONG_NaN) {
@Override
public boolean isConstant() {
return false;
}
});
args.add(new DoubleConstant(Double.NaN));
IntList argPositions = new IntList();
argPositions.add(1);
argPositions.add(2);
Function function = factory.newInstance(4, args, argPositions, configuration, sqlExecutionContext);
Assert.assertTrue(function.getBool(null));
Assert.assertFalse(function.isConstant());
}
Aggregations