public class DateTruncFunction extends BaseDateTruncFunction {
public static void register(ScalarFunctionModule module) {
module.register(new DateTruncFunction(new FunctionInfo(
new FunctionIdent(NAME, ImmutableList.<DataType>of(DataTypes.STRING, DataTypes.TIMESTAMP)),
DataTypes.TIMESTAMP)
));
module.register(new DateTruncFunction(new FunctionInfo(
new FunctionIdent(NAME, ImmutableList.<DataType>of(DataTypes.STRING, DataTypes.LONG)),
DataTypes.TIMESTAMP)
));
module.register(new DateTruncFunction(new FunctionInfo(
new FunctionIdent(NAME, ImmutableList.<DataType>of(DataTypes.STRING, DataTypes.STRING)),
DataTypes.TIMESTAMP)
));
}