4paradigm / 4paradigm/OpenMLDB

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

Offen Anfängerfreundlich
#3,375 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @aceforeverd Auf GitHub ansehen
bug test
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
sql
Bereich
databases, testing
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.