Skip to content

Conversation

@kkampli-singlestore
Copy link
Contributor

@kkampli-singlestore kkampli-singlestore commented Jun 25, 2025

We will be moving the creation of UDFs from sdk to the control plane.
These SQL statements will then be called through cellagent to register UDFs against the customer's DB.

Changes:

  1. Removed replace_existing argument when calling run_udf_app().
  2. sql_statement i.e used to the register the UDF in DB added to udf server response

Sample Response:

{
  "functions": {
    "asdf_test": {
      "args": [],
      "returns": [
        {
          "dtype": "str",
          "nullable": false
        }
      ],
      "function_type": "udf",
      "sql_statement": "CREATE OR REPLACE EXTERNAL FUNCTION asdf_test() RETURNS TEXT NOT NULL AS MANAGED SERVICE \"http://nova-gateway-service.fission.svc.cluster.local:8000/pythonudfs/2ddc0f00-8611-4a79-bb40-928b36cf819f/interactive/\" FORMAT ROWDAT_1;"
    }
  }
}

@kkampli-singlestore kkampli-singlestore marked this pull request as draft June 25, 2025 14:12
@kkampli-singlestore kkampli-singlestore marked this pull request as ready for review June 26, 2025 12:26
@kkampli-singlestore kkampli-singlestore force-pushed the users/kaushik/udf-idle-start-fix branch from 33fc029 to 7d57e9d Compare June 26, 2025 12:28
@kkampli-singlestore kkampli-singlestore force-pushed the users/kaushik/udf-idle-start-fix branch from 7d57e9d to a01f9ae Compare July 1, 2025 10:40
@srinathnarayanan srinathnarayanan merged commit 93a0018 into singlestore-labs:main Jul 4, 2025
6 checks passed
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