Weijun-H opened a new issue, #8783:
URL: https://github.com/apache/arrow-datafusion/issues/8783

   ### Is your feature request related to a problem or challenge?
   
   Currently, the DataFusion CLI lacks autocompletion support, which can be a 
hindrance to users trying to efficiently navigate and execute commands. 
Autocompletion is a standard feature in modern CLIs that significantly improves 
user productivity by suggesting and completing commands, options, and arguments 
as users type.
   
   ### Describe the solution you'd like
   
   extend current `Completer`
   ``` rust
   impl Completer for CliHelper {
       type Candidate = Pair;
   
       fn complete(
           &self,
           line: &str,
           pos: usize,
           ctx: &Context<'_>,
       ) -> std::result::Result<(usize, Vec<Pair>), ReadlineError> {
           if is_open_quote_for_location(line, pos) {
               self.completer.complete(line, pos, ctx)
           } else {
               Ok((0, Vec::with_capacity(0)))
           }
       }
   }
   ```
   then search the most possible command based on input (maybe build up Trie 
index for it?)
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   
[#1251](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)


-- 
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