You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/11/08 09:49:45 UTC

[GitHub] vvysotskyi opened a new pull request #1527: DRILL-3610 & DRILL-4456 Fix TIMESTAMPADD, TIMESTAMPDIFF and Hive TRANSLATE functions

vvysotskyi opened a new pull request #1527: DRILL-3610 & DRILL-4456 Fix TIMESTAMPADD, TIMESTAMPDIFF and Hive TRANSLATE functions
URL: https://github.com/apache/drill/pull/1527
 
 
   - In the first commit was added renaming of Hive `TRANSLATE` function to `TRANSLATE3` during function registration.
   
   - In the second commit was added type inference for `TIMESTAMPADD` function to avoid failures for the cases when function types are checked for expressions before and after rewriting.
   - Added custom convertlet for `TIMESTAMPDIFF` function to avoid rewriting it by Calcite, since Drill does not support `Reinterpret` function and does not handle all Calcite interval representations correctly.
   - Added UDFs for `TIMESTAMPDIFF` for all supported time units. The mechanism is similar to the existing `EXTRACT` function: when Calcite `RexCall` is converted to the Drill `LogicalExpression`, a function name is changed to `timestampdiffSecond` or similar one depending on the specified time unit.
   
   For problem descriptions please see [DRILL-3610](https://issues.apache.org/jira/browse/DRILL-3610) and [DRILL-4456](https://issues.apache.org/jira/browse/DRILL-4456).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services