4paradigm / 4paradigm/OpenMLDB

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

Aperta
#1,224 0 commenti 0 reazioni 1 assegnatario Rivendicata da @dl239 Vedi su GitHub
enhancement
Lingua principale
C++
Stelle
1.7k
Fork
331
Merge medio
12g 12h
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cli, sql
Ambito
cli, databases
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.