apache / apache/arrow-rs

[Variant] Align cast logic for `variant_get` to cast kernel

Open
#8,982 9 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
3.6k
Forks
1.3k
Avg merge
2d 18h
Merged PRs (30d)
169

Description

**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**

Currently, we only support safe cast, but no lossy cast(e.g., 123.34(Decimal) -> 123(Int)), we need to support this after #8086 and #8873

**Describe the solution you'd like**

Add a lossy cast for all data types in `variant_get`, we may need to do each data type separately.

**Describe alternatives you've considered**

**Additional context**

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.