Release 0.144.6#
General#
This release fixes several problems with large and negative intervals.
- Fix parsing of negative interval literals. Previously, the sign of each field was treated independently instead of applying to the entire interval value. For example, the literal - INTERVAL '-2-3' YEAR TO MONTHwas interpreted as a negative interval of- 21months rather than- 27months (positive- 3months was added to negative- 24months).
- Fix handling of - INTERVAL DAY TO SECONDtype in REST API. Previously, intervals greater than- 2,147,483,647milliseconds (about- 24days) were returned as the wrong value.
- Fix handling of - INTERVAL YEAR TO MONTHtype. Previously, intervals greater than- 2,147,483,647months were returned as the wrong value from the REST API and parsed incorrectly when specified as a literal.
- Fix formatting of negative intervals in REST API. Previously, negative intervals had a negative sign before each component and could not be parsed. 
- Fix formatting of negative intervals in JDBC - PrestoIntervalclasses.
Note
Older versions of the JDBC driver will misinterpret most negative intervals from new servers. Make sure to update the JDBC driver along with the server.