pnowojski commented on a change in pull request #6614: [FLINK-9432] [table]
Support extract timeunit: DECADE, EPOCH, ISODOW, ISOYEAR…
URL: https://github.com/apache/flink/pull/6614#discussion_r220168491
##########
File path:
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/expressions/ScalarFunctionsTest.scala
##########
@@ -1852,6 +1852,42 @@ class ScalarFunctionsTest extends ScalarTypesTestBase {
"EXTRACT(DOY FROM f16)",
"315")
+ testSqlApi(
+ "EXTRACT(EPOCH FROM f18)",
+ "847608883")
Review comment:
Why does the PostgreSQL (which seems to be the only major DB that supports
EPOCHs?) returns different results here? The results are 10 seconds of, which
seems disturbing.
http://sqlfiddle.com/#!17/9eecb/21451
It might have something to do with leap seconds...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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