Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support protobuf encoding and decoding of UnnestExec #12344

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

joroKr21
Copy link
Contributor

@joroKr21 joroKr21 commented Sep 5, 2024

Which issue does this PR close?

Closes #12343

Rationale for this change

Completeness of UnnestExec

What changes are included in this PR?

  • Add a new physical plan node UnnestExecNode to protos
  • Support encoding UnnestExec to UnnestExecNode
  • Support decoding UnnestExec from UnnestExecNode
  • Add some public getters to UnnestExec to enable the encoding

Are these changes tested?

Yes, added a roundtrip test.

Are there any user-facing changes?

  • A new physical plan node Protobuf message
  • Public getters in UnnestExec

@@ -1345,3 +1349,30 @@ fn roundtrip_interleave() -> Result<()> {
let interleave = InterleaveExec::try_new(inputs)?;
roundtrip_test(Arc::new(interleave))
}

#[test]
fn roundtrip_unnest() -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Copy link
Contributor

@Dandandan Dandandan 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 @joroKr21

@alamb alamb changed the title Support encoding and decoding UnnestExec Support protobuf encoding and decoding of UnnestExec Sep 6, 2024
@alamb alamb merged commit ddfbf7a into apache:main Sep 6, 2024
25 checks passed
@alamb
Copy link
Contributor

alamb commented Sep 6, 2024

🚀 -- thanks @joroKr21 and @Dandandan

@joroKr21 joroKr21 deleted the unnest/serde branch September 6, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions proto Related to proto crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing serde for UnnestExec physical plan node
3 participants