apache / apache/arrow-go

compute. CastOptions add option to cast to null value when cast fails

Open
#463 2 comments 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
Assembly
Stars
404
Forks
145
Avg merge
2d 4h
Merged PRs (30d)
87

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

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.