Description
PostgreSQL supports subtraction dates and timestamps:
maxim=# select date'2020-01-01' - timestamp'2019-10-06 10:11:12.345678'; ?column? ------------------------- 86 days 13:48:47.654322 (1 row) maxim=# select timestamp'2019-10-06 10:11:12.345678' - date'2020-01-01'; ?column? --------------------------- -86 days -13:48:47.654322 (1 row)
Need to provide the same feature in Spark SQL.
Attachments
Issue Links
- links to