flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] docete commented on issue #10268: [Flink-14599][table-planner-blink] Support precision of TimestampType in blink planner
Date Thu, 21 Nov 2019 10:26:21 GMT
docete commented 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 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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message