Skip to content

Conversation

@gatesn
Copy link
Contributor

@gatesn gatesn commented Jan 29, 2025

Create a ToArrow compute function that takes a target Arrow DType.

This allows us in the future to support e.g. DictArray::to_arrow(DataType::Dictionary(...)) which currently isn't possible with the into_canonical hack we use for VarBin.

@gatesn gatesn enabled auto-merge (squash) January 29, 2025 11:38
@gatesn gatesn requested a review from robert3005 January 29, 2025 11:44
Copy link
Contributor

@robert3005 robert3005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a comment because the todo is not actually something you want to do...

) -> VortexResult<Option<ArrayRef>> {
let array_ref = match data_type {
DataType::BinaryView | DataType::FixedSizeBinary(_) | DataType::Utf8View => {
// TODO(ngates): we should support converting VarBin into these Arrow arrays.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually handled, because BinaryView and Utf8View are canonical so the fallback will canonicalize.

Note: We don't want this to be implemented here since converting our varbin to arrow varbin might copy offsets

@gatesn gatesn merged commit c50a5ee into develop Jan 29, 2025
21 checks passed
@gatesn gatesn deleted the ngates/vtabels-canonical branch January 29, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants