compute. CastOptions add option to cast to null value when cast fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading the compute.CastArray and compute.CastToType entry points and the existing default cast options. Trace how failed element casts currently produce initial values, then define the option's expected null behavior while preserving successful casts. Done means failed elements become null and the remaining values cast successfully, with coverage for both entry points.
Written by the indexing model from the issue text.
Description
Describe the enhancement requested
I am using compute. CastArray and compute. CastToType for casting an array to a compatible type. If one element in the array can not be casted, then the whole array fails. Is it possible to set those failed ones to null value while casting the remaining of the array successfully? I tried setting those default cast options to true, but it seems the behavior is setting those failed ones to initial value. Thanks for your help!
Component(s)
Other
- Dominant language
- Assembly
- Stars
- 406
- Forks
- 146
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 93
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/arrow-go
-
Type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Type: usage
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 3/5 1-2 days Newbie friendliness 90/100
-
good-first-issue Type: enhancement Type: usage
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cisagov/cyhy-reports#149 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
open-compass/VLMEvalKit#1698 ·