snowflake-cli icon indicating copy to clipboard operation
snowflake-cli copied to clipboard

SNOW-1669337: Please add a REPL to snowflake-cli

Open jamiekt opened this issue 5 months ago • 0 comments

Description

The feature of snowsql that I use constantly is the REPL. For example:

➜  ~ snowsql -a XXX.eu-west-1 -u [email protected] --authenticator externalbrowser
* SnowSQL * v1.3.2
Type SQL statements or !help
[email protected]#MY_DB@(no database).(no schema)>select current_user();
+------------------------------+
| CURRENT_USER()               |
|------------------------------|
| [email protected] |
+------------------------------+
1 Row(s) produced. Time Elapsed: 0.074s
[email protected]#MY_DB@(no database).(no schema)>select current_user();
+------------------------------+
| CURRENT_USER()               |
|------------------------------|
| [email protected] |
+------------------------------+
1 Row(s) produced. Time Elapsed: 0.077s
[email protected]#MY_DB@(no database).(no schema)>

However there is no such REPL in snow as far as I can tell. snow sql has -q, -f, -i options, but those aren;t equivalent to snowsql's REPL

Context

snow seems like the "do everything" CLI tool that Snowflake needs however until it has an interactive REPL I'll have to go on using both snow & snowsql, and I'd rather not have to do that.

jamiekt avatar Sep 17 '24 20:09 jamiekt