apache / apache/arrow

[Gandiva][C++] Fix castINTERVALDAY and castINTERVALYEAR

Open
#31,518 0 comments 0 reactions 0 assignees View on GitHub
Component: Gandiva Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

Fix error in LLVM where didn't find these two functions.

Fix regex to allow negative digits for Interval Day and Interval Year.

**Reporter**: [Johnnathan Rodrigo Pego de Almeida](https://issues.apache.org/jira/browse/ARROW-16108) / @Johnnathanalmeida
#### Externally tracked issue: [https://github.com/apache/arrow/pull/12776](https://github.com/apache/arrow/pull/12776)
#### PRs and other links:
- [GitHub Pull Request #12776](https://github.com/apache/arrow/pull/12776)

**Note**: *This issue was originally created as [ARROW-16108](https://issues.apache.org/jira/browse/ARROW-16108). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

The issue concerns Gandiva's C++ castINTERVALDAY and castINTERVALYEAR functions and their interval regex handling; no file or test is named. Review linked PR #12776 first, then locate the relevant Gandiva implementation and tests; done means LLVM finds both functions and negative Interval Day and Year digits are accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.