Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
Spark SQL:
spark-sql> select cast(INTERVAL '10' SECOND as string); interval 10 seconds
PostgreSQL:
postgres=# select substr(version(), 0, 16), cast(INTERVAL '10' SECOND as text); substr | text -----------------+---------- PostgreSQL 11.3 | 00:00:10 (1 row)
Vertica:
dbadmin=> select version(), cast(INTERVAL '10' SECOND as varchar(255)); version | ?column? ------------------------------------+---------- Vertica Analytic Database v9.1.1-0 | 10 (1 row)
Presto:
presto> select cast(INTERVAL '10' SECOND as varchar(255)); _col0 ---------------- 0 00:00:10.000 (1 row)
Oracle:
SQL> select cast(INTERVAL '10' SECOND as varchar(255)) from dual; CAST(INTERVAL'10'SECONDASVARCHAR(255)) -------------------------------------------------------------------------------- INTERVAL'+00 00:00:10.000000'DAY TO SECOND
Attachments
Issue Links
- is related to
-
SPARK-29783 Support SQL Standard output style for interval type
- Resolved