Re: Wired behavior of DATE_FORMAT UDF in Flink SQL

2018-10-31 Thread Timo Walther
Hi Henry, the DATE_FORMAT function is in a very bad state right now. I would recommend to implement your own custom function right now. This issue is tracked here: https://issues.apache.org/jira/browse/FLINK-10032 Regards, Timo Am 31.10.18 um 07:44 schrieb 徐涛: Hi Experts, I found that DA

Wired behavior of DATE_FORMAT UDF in Flink SQL

2018-10-30 Thread 徐涛
Hi Experts, I found that DATE_FORMAT(timestamp,format) returns a TIMESTAMP type, it is wired, because normally format result should be a string type. In document it says “Formats timestamp as a string using a specified format string”. But when I run it in Flink SQL, selec