docete edited a comment on issue #10268: [Flink-14599][table-planner-blink] 
Support precision of TimestampType in blink planner
URL: https://github.com/apache/flink/pull/10268#issuecomment-557020423
 
 
   > BTW, all the UDF are currently using `SqlTimestamp` as parameter, might be 
helpful to change some of them to `long` or `LocalDateTime`.
   
   According to the offline discuss, long is not acceptable for TIMESTAMP now. 
`LocalDateTime` and `Timestamp` exist in `CalcITCase`.`testTimeUDF`
   
   `
     @SerialVersionUID(1L)
     object TimestampFunction extends ScalarFunction {
       def eval(t: java.sql.Timestamp): String = t.toString
     }
   
     @SerialVersionUID(1L)
     object DateTimeFunction extends ScalarFunction {
       def eval(t: LocalDateTime): String = t.toString
     }
   `
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to