Skip to content

Conversation

@superserious-dev
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Adds Binary, LargeBinary, and BinaryView conversions to the cast_to_variant kernel

What changes are included in this PR?

  • a macro to simplify array type conversions
  • conversion of DataType:::{Binary, LargeBinary, BinaryView}=> Variant::Binary

Are these changes tested?

Yes, additional unit tests have been added.

Are there any user-facing changes?

Yes, adds new type conversions to kernel

@alamb
Copy link
Contributor

alamb commented Aug 7, 2025

The clippy failure was fixed in

So that should be fixed by merging up from main

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks great -- thank you @superserious-dev

@alamb alamb merged commit 7a5f6d3 into apache:main Aug 7, 2025
12 checks passed
@alamb
Copy link
Contributor

alamb commented Aug 7, 2025

Thanks again @superserious-dev -- I merged this so that other people working on the other types can reuse your macros

@superserious-dev superserious-dev deleted the binary-cast-to-variant branch August 7, 2025 17:07
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.

[Variant]: Implement DataType::Binary/LargeBinary/BinaryView support for cast_to_variant kernel

2 participants