matthewbayer opened a new pull request, #5135:
URL: https://github.com/apache/calcite/pull/5135

   ## Jira Link
   
   [CALCITE-7681](https://issues.apache.org/jira/browse/CALCITE-7681)
   
   ## Changes Proposed
   
   Apply the datetime operator's precedence when unparsing its operands. This 
preserves the compound interval in SQL such as:
   
   ```sql
   CURRENT_DATE - (INTERVAL '3' YEAR + INTERVAL '3' YEAR)
   ```
   
   Previously, RelToSql flattened the right operand and changed the 
expression's meaning:
   
   ```sql
   CURRENT_DATE - INTERVAL '3' YEAR + INTERVAL '3' YEAR
   ```
   
   Add regression coverage for the default and Spark dialects.
   
   ## Testing
   
   - `./gradlew :core:test` (15,833 tests, 0 failures)
   - `./gradlew :core:checkstyleMain :core:checkstyleTest`
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to