如何将自定义UDF注册成Constant Functions

【详述】自定义udf无法做到SR原生Constant Functions一样提前做分区下推,如何将自定义UDF注册成Constant Functions