Skip to content

feat: allow if expressions for fallbacks in downcast macro#7322

Merged
alamb merged 3 commits intoapache:mainfrom
rluvaton:allow-if-expression-in-fallback
Mar 25, 2025
Merged

feat: allow if expressions for fallbacks in downcast macro#7322
alamb merged 3 commits intoapache:mainfrom
rluvaton:allow-if-expression-in-fallback

Conversation

@rluvaton
Copy link
Copy Markdown
Member

Which issue does this PR close?

N/A

Rationale for this change

To be able to add if expressions in the fallback pattern

What changes are included in this PR?

added if pattern for all macro in cast.rs for the fallback pattern, unfortunately rust doesn't allow to add if after expr so I can't add if to the main pattern

Are there any user-facing changes?

Yes

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Mar 23, 2025
Copy link
Copy Markdown
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.

Thanks @rluvaton

Comment thread arrow-array/src/cast.rs
Copy link
Copy Markdown
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.

Thanks @rluvaton - looks good to me

@alamb alamb merged commit 3a7f47b into apache:main Mar 25, 2025
26 checks passed
@rluvaton rluvaton deleted the allow-if-expression-in-fallback branch March 25, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants