Skip to content

Reuse generated SQL functions plans #3394

@hatyo

Description

@hatyo

Each time we invoke a (temporary) SQL function we regenerate its plan, this is mainly done for two reasons:

  • avoid identifier collisions.
  • plans are mutable, the planner can alter the passed plan in a way that makes it invalid to use again.

For these reasons, we could deep-copy the function plan using a special rebase operator that assigns new identifiers as it traverses the plan and copies it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestrelationalissues related to relational FDB

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions