Skip to content

Conversation

@scsmithr
Copy link
Contributor

Which issue does this PR close?

N/A

Rationale for this change

Allows reconstructing a ValuesExec from a schema and vector of record batches.

The use case here is being able to completely serialize a physical plan that would get produced from a statement like insert into my_table values (...).

Serialization of ValuesExec is not included in this PR. My plan for serialization was to just IPC encode the batches. If that sounds reasonable, I can follow up with a PR adding that to the proto crate.

What changes are included in this PR?

Are these changes tested?

Adds a couple small tests.

Are there any user-facing changes?

Adds additional functions for ValuesExec, but no change in behavior.

@github-actions github-actions bot added the core Core DataFusion crate label Aug 29, 2023
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.

I think this looks like a nice addition @scsmithr -- thank you for the contribution (and I apologize for the delay in review).

It looks like there is one CI failure https://github.com/apache/arrow-datafusion/actions/runs/6016911160/job/16322230592?pr=7444 due to use of deprecated features in chrono, but that appears to have been fixed in #7451

@alamb alamb merged commit 3bbd1f0 into apache:main Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants