4paradigm / 4paradigm/OpenMLDB

CREATE FUNCTION: test not covered for `CREATE FUNCTION ... OPTIONS (FILE = 'libxxx.so')`

Open Beginner friendly
#3,375 1 comment 0 reactions 1 assignee Claimed by @aceforeverd View on GitHub
bug test
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
1

Description

Current UTs for **CREATE FUNCTION** only covered `FILE = `, while the production advised usage: `FILE = ` is not covered, neither for online or offline.

Tests should covered for the case: `FILE = `, where `` do not contains any slash(`/`) character, is able to register the external function whose shared library located in `/../udf` or `/../udf`

Contributor guide

Open the contributing guide

Research direction

Look for existing unit tests for CREATE FUNCTION, likely in test files related to SQL or UDFs. The issue is about adding test coverage for the `FILE = 'libxxx.so'` syntax without slashes. Find where the UDF loading logic resolves filenames to paths in tablet_bin_dir/../udf or taskmanager_bin_dir/../udf. Write a test that creates a function with a simple filename and verifies it registers correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.