Hi,
这是一个已知问题 [1][2],新版本中我们只是简单的把这几个函数在hive module里禁掉了 [3],建议先用flink的函数来绕一下。
[1]
https://issues.apache.org/jira/browse/FLINK-16688[2]
https://issues.apache.org/jira/browse/FLINK-16618[3]
https://issues.apache.org/jira/browse/FLINK-18995On Tue, Nov 24, 2020 at 11:54 AM 酷酷的浑蛋 <
[hidden email]> wrote:
> Flink-1.11.1, hive-2.2.0
> 在使用current_timestamp或者current_date函数时会报
> Caused by: java.lang.NullPointerException
> at
> org.apache.hadoop.hive.ql.udf.generic.GenericUDFCurrentTimestamp.initialize(GenericUDFCurrentTimestamp.java:51)
> at
> org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:141)
>
>
>
>
--
Best regards!
Rui Li