yaooqinn commented on issue #26592: [SPARK-29371][SQL] Fractional representation for interval string URL: https://github.com/apache/spark/pull/26592#issuecomment-555393745 ```sql postgres=# select interval '0.1111111 seconds 2 microseconds'; ERROR: invalid input syntax for type interval: "0.1111111 seconds 2 microseconds" LINE 1: select interval '0.1111111 seconds 2 microseconds'; ^ postgres=# select interval '1 seconds 2 microseconds'; interval ----------------- 00:00:01.000002 (1 row) postgres=# select interval '1 seconds 2.1 microseconds'; interval ----------------- 00:00:01.000002 (1 row) postgres=# select interval '1 minute 2.1 microseconds'; interval ----------------- 00:01:00.000002 (1 row) ``` PG does not allow millis and micros to be fraction number, when and only when second part is fr fraction too.
---------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
