apache / apache/datafusion

[datafusion-spark] Support year-month interval and day-time interval in spark sqllogictest

Open
#18,793 2 comments 0 reactions 1 assignee Claimed by @codetyri0n View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

Apache Spark supports 2 ANSI interval types: `DayTimeIntervalType` and `YearMonthIntervalType` and many Spark functions (e.g. [abs](https://github.com/apache/datafusion/pull/18205)) take ANSI interval types.

It would be great to support them in SLT tests.

### Describe the solution you'd like

Able to test `SELECT abs(INTERVAL -'1-1' YEAR TO MONTH);` in SLT.

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.