4paradigm / 4paradigm/OpenMLDB

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

Open
#1,224 0 comments 0 reactions 1 assignee Claimed by @dl239 View on GitHub
enhancement
Dominant language
C++
Stars
1.7k
Forks
331
Avg merge
12d 12h
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
cli, sql
Domain
cli, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.