bchong95 opened a new pull request #2466: URL: https://github.com/apache/calcite/pull/2466
This PR is just bringing back up: https://github.com/apache/calcite/pull/721 And here is the description: >Canonicalize the representation of adding a single time unit to a datetime type under the datetime_plus operator. Add a RexUtil method for converting back to timestampadd. >Add a hook that lets a SqlDialect request datetime_plus to be exposed as timestampadd. >This work duplicates some of the work in [CALCITE-2188], however it allows for this conversion to happen outside of SqlDialect. It also handles the case where an interval is not just a literal, but a multiplication of an interval literal by an integer (the TimestampAddConvertlet does this when converting TIMESTAMPADD to DATETIME_PLUS initially) -- 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]
