You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/02 21:11:10 UTC

[GitHub] [arrow-datafusion] matthewmturner opened a new issue #1906: Add `\i` command to datafusion-cli

matthewmturner opened a new issue #1906:
URL: https://github.com/apache/arrow-datafusion/issues/1906


   Taking inspiration from`psql` , it implements a `\i` command (not a command line argument) for this usecase. It *includes* a file:
   
   https://www.postgresql.org/docs/13/app-psql.html
   
   > \i or \include filename
   > Reads input from the file filename and executes it as though it had been typed on the keyboard.
   > 
   > If filename is - (hyphen), then standard input is read until an EOF indication or \q meta-command. This can be used to intersperse interactive input with input from files. Note that Readline behavior will be used only if it is active at the outermost level.
   
   It appears that mysql has a similar command `source` or `\.` that does the same thing
   
   https://dev.mysql.com/doc/refman/8.0/en/mysql-batch-commands.html
   
   
   Thus I would recommend implementing a `\i` command (and possibly also a `source` command)
   
   _Originally posted by @alamb in https://github.com/apache/arrow-datafusion/issues/1875#issuecomment-1057113073_


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org