Skip to content

chore: extend record_batch macro to support variables and expressions#9522

Open
buraksenn wants to merge 2 commits intoapache:mainfrom
buraksenn:extend-record-batch-to-support-variables
Open

chore: extend record_batch macro to support variables and expressions#9522
buraksenn wants to merge 2 commits intoapache:mainfrom
buraksenn:extend-record-batch-to-support-variables

Conversation

@buraksenn
Copy link

@buraksenn buraksenn commented Mar 6, 2026

Which issue does this PR close?

Rationale for this change

Currently record_batch! macro supports only literal values. In datafusion repository there is also a record_batch! macro that supports this.

apache/datafusion#13037 can be closed after Datafusion repository upgrades version

What changes are included in this PR?

Extend record_batch! macro to support datafusion equivalent added in:

Are these changes tested?

I've actually ported datafusion logic to here. I was not sure if it makes sense to add unit tests for this macro but I can if requested

Are there any user-facing changes?

No breaking changes to downstream since this only extends macro

@github-actions github-actions bot added the arrow Changes to the arrow crate label Mar 6, 2026
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.

Support variables/expressions in record_batch! macro

1 participant