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

Serialize: rework signature, part 3 #7867

Merged
merged 3 commits into from
Jun 8, 2023
Merged

Conversation

carlopi
Copy link
Contributor

@carlopi carlopi commented Jun 7, 2023

This is a (sort of draft) PR on top of serialization2, but then taking a separate turn in changing the function_deserialize_t signature to use PlanDeserializationState.

It means encapsulating ClientContext instead of using it directly, and that's allow for ease of change of the codebase in the future AND allow implementing serializations for List lambda & co.

Note that currently function_deserialize_t and friends (aggregates / table_functions) are assumed to have the same signature due to how templating in src/include/duckdb/function/function_serialization.hpp works.

I am looking for feedbacks, and not part of this PR (yet) is having more explicit that signature IS actually the same at C++ level.

Deserialization signature to take PlanDeserializationState& instead of ClientContext&
@carlopi carlopi changed the title Serialization alternative approach Serialize: rework signature, part 3 Jun 8, 2023
@Mytherin Mytherin merged commit 01e2ae9 into duckdb:master Jun 8, 2023
84 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Jun 8, 2023

Thanks!

@carlopi carlopi deleted the serializationA branch June 13, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants