datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

feat: support Timestamp +/- Interval

Open JasonLi-cn opened this issue 3 years ago • 0 comments

Is your feature request related to a problem or challenge? Please describe what you are trying to do. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] (This section helps Arrow developers understand the context and why for this feature, in addition to the what)

support SQL like:

select now() - interval '1' day from table limit 10;

Describe the solution you'd like A clear and concise description of what you want to happen. Support Timestamp +/- in DateIntervalExpr https://github.com/apache/arrow-datafusion/blob/9956f80f197550051db7debae15d5c706afc22a3/datafusion/expr/src/binary_rule.rs#L96-L104

https://github.com/apache/arrow-datafusion/blob/9956f80f197550051db7debae15d5c706afc22a3/datafusion/physical-expr/src/expressions/datetime.rs#L33-L37

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

JasonLi-cn avatar Aug 11 '22 12:08 JasonLi-cn