opensearch-project / sql-jdbc

This is the driver for JDBC connectivity to a cluster running with OpenSearch SQL support.
Apache License 2.0
14 stars 25 forks source link

Added brackets for math operation functions in the TACO #93

Closed GumpacG closed 1 year ago

GumpacG commented 1 year ago

Description

Test failures in TDVT were caused by unexpected order of operations. For formula 86400 * x with x = TO_DAYS(date1) - TO_DAYS(date2) we get 86400 * TO_DAYS(date1) - TO_DAYS(date2) instead of 86400 * (TO_DAYS(date1) - TO_DAYS(date2)).

Brackets were added to function arguments for math operations in order to fix this issue.

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.