tz70s opened a new issue, #6267:
URL: https://github.com/apache/arrow-datafusion/issues/6267

   ### Is your feature request related to a problem or challenge?
   
   At the moment `datafusion-cli` utilizes `rustyline` validator to validate 
the queries, which has a behavior I feel not so intuitive:
   
   The syntax error editing allowing us to have "hints" at the side and go back 
to edit the line buffer, rather than reporting the parsing error and force 
re-editing from start, or recover from history which is the way ordinary CLI 
tools do from my knowledge (e.g. psql or mycli).
   This causes some confusions to me at the beginning.
   
   Not sure is it only me feeling like this?
   
   ### Describe the solution you'd like
   
   If we keen to keep this editing style perhaps improving the "hints" to 
encourage going back to edit might be better.
   
   e.g. `🤔 Invalid statement: sql parser error: Expected FROM, found: xxx; You 
can keep editing this statement or press <ctrl-c> to give up editing.`
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to