public static ScalarOperator translate(Expr expression, ExpressionMapping expressionMapping,
                                           ColumnRefFactory columnRefFactory) {
        return translate(expression, expressionMapping, null, columnRefFactory);
    }
@Test
    public void testTranslateConstant() {
        DateLiteral literal = new DateLiteral(2000, 12, 1);
        ScalarOperator so =
                SqlToScalarOperatorTranslator.translate(literal, new ExpressionMapping(null, Collections.emptyList()),
                        new ColumnRefFactory());

        assertEquals(OperatorType.CONSTANT, so.getOpType());
        assertEquals(LocalDateTime.of(2000, 12, 1, 0, 0), ((ConstantOperator) so).getDate());
    }