Skip to content

Fix: allow coercion from Binary and LargeBinary into BinaryView#21800

Open
bert-beyondloops wants to merge 1 commit intoapache:mainfrom
bert-beyondloops:cast-binaryView
Open

Fix: allow coercion from Binary and LargeBinary into BinaryView#21800
bert-beyondloops wants to merge 1 commit intoapache:mainfrom
bert-beyondloops:cast-binaryView

Conversation

@bert-beyondloops
Copy link
Copy Markdown
Contributor

@bert-beyondloops bert-beyondloops commented Apr 23, 2026

Which issue does this PR close?

Rationale for this change

The coercion should take place in the same way as is foreseen already for the string datatypes (Utf8, LargeUtf8, Null -> Utf8View)

What changes are included in this PR?

The coerced_from function in datafusion/expr/src/type_coercion/functions.rs was missing a match arm for (BinaryView, Binary | LargeBinary | Null).

Are these changes tested?

Additional unit test written : test_binary_conversion

Are there any user-facing changes?

No

@github-actions github-actions Bot added the logical-expr Logical plan and expressions label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow coercion from Binary and LargeBinary into BinaryView

2 participants