4paradigm / 4paradigm/OpenMLDB

CLI with interactive=false does not print error message if fail to execute SQL

Offen
#1,224 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @dl239 Auf GitHub ansehen
enhancement
Vorherrschende Sprache
C++
Sterne
1.7k
Forks
331
Ø Merge
12 T. 12 Std.
Gemergte PRs (30 T.)
1

Beschreibung

Now we use `interactive=false` to execute SQL and it does not print any error message if we pass the incorrect SQL.

wecom-temp-3fa9e2cf0069009b83dc1bce5fe39ba6

BTW, the SQL should be end with `;` which is not expected.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Look at the CLI code that handles SQL execution with interactive=false. The issue mentions that error messages are not printed when SQL is incorrect and that SQL should end with a semicolon. Start by finding where SQL commands are parsed and executed in non-interactive mode, then add error output. Check if there are existing tests for CLI error handling to verify the fix.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cli, sql
Bereich
cli, databases
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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