4paradigm / 4paradigm/OpenMLDB

Support show variables like syntax

Offen
#3,601 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
sql
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

**Describe the feature you'd like**

Now mysql supports "show variables like" to show some variables instead of all variables. Refer to https://dev.mysql.com/doc/refman/8.0/en/show-variables.html .

But it does not support in OpenMLDB SQL.

![image](https://github.com/4paradigm/OpenMLDB/assets/2715000/b153cc7b-4afe-45a2-886a-57d5d18e8e8d)

**Additional context**

We have support `like` udf in other SQLs and may use in `show variables`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue is about extending the 'SHOW VARIABLES' command in OpenMLDB to support a 'LIKE' clause, similar to MySQL. Look for the SQL parser and command executor code that handles 'SHOW VARIABLES'. Check existing 'LIKE' UDF implementations to understand the pattern matching logic. Test the change by running the modified SQL command in the OpenMLDB CLI to verify it filters variables correctly.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
sql
Bereich
cli, databases
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
40/100

Neue Issues direkt in Ihr Postfach

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