Skip to content

Conversation

sdf-jkl
Copy link
Contributor

@sdf-jkl sdf-jkl commented Aug 7, 2025

Which issue does this PR close?

Rationale for this change

Adds boolean conversion to the cast_to_variant kernel

What changes are included in this PR?

  • Added a non_generic_conversion macro for converting data types that do not require generic type in the method.
  • Renamed cast_conversion macro to generic_conversion to make a distinction.
  • Conversion of DataType::Boolean to Variant:BooleanTrue/False

Are these changes tested?

Yes, added a test for casting Boolean array to Variant

Are there any user-facing changes?

New conversion to cast_to_variant kernel

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 good to me -- thank. you @sdf-jkl

@github-actions github-actions bot added the parquet-variant parquet-variant* crates label Aug 12, 2025
@alamb
Copy link
Contributor

alamb commented Aug 12, 2025

I merged up to resolve a conflict

@sdf-jkl
Copy link
Contributor Author

sdf-jkl commented Aug 13, 2025

@alamb Ready to merge and close the issue?

@alamb alamb merged commit 0dfeccb into apache:main Aug 13, 2025
12 checks passed
@alamb
Copy link
Contributor

alamb commented Aug 13, 2025

Yes, thank you @sdf-jkl

@sdf-jkl sdf-jkl deleted the bool-to-variant branch August 13, 2025 14:43
@alamb alamb changed the title Implement DataType::Boolean support for cast_to_variant kernel [Variant] Implement DataType::Boolean support for cast_to_variant kernel Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet-variant parquet-variant* crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Variant]: Implement DataType::Boolean support for cast_to_variant kernel
2 participants