Skip to content

User-defined Function Support #6193

Open

Description

@fulghum

Dolt currently supports creating stored procedures, but does not yet support creating user-defined functions. Stored procedures allow customers to execute custom SQL code, but not directly return results that can be used in other parts of queries.

While working with a customer on a migration, we found their schema was using multiple user-defined functions to generate values used in other views and queries. Allowing users to create user-defined functions would enable these use cases with Dolt.

Activity

  1. added
    enhancementNew feature or request
    and removed on Sep 28, 2023
  2. ecryth commented on Jun 5, 2024

    @ecryth

    We'd like to see this as well, we make use of user-defined functions in some of our migrations, and while it's not too hard to rewrite them to avoid functions, they do make the queries a bit easier to read. (And in general we try to avoid changing old migrations that have already shipped with a release.)

  3. gitasmus commented on Nov 9, 2024

    @gitasmus

    We likewise would appreciate to be able to use the FUNCTIONs of our MySQL database project in dolt.

  4. self-assigned this
    on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions