Skip to content

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.

carlopi added 2 commits June 8, 2023 09:52
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
@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.

2 participants