Skip to content

Comments

Added the Spool Command in REPL#2721

Open
varundeepsaini wants to merge 6 commits intosnowflakedb:mainfrom
varundeepsaini:ft/add-spool-command
Open

Added the Spool Command in REPL#2721
varundeepsaini wants to merge 6 commits intosnowflakedb:mainfrom
varundeepsaini:ft/add-spool-command

Conversation

@varundeepsaini
Copy link

@varundeepsaini varundeepsaini commented Dec 13, 2025

Fixes: #2719

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.
  • I've described my changes in the documentation.

Changes description

Adds !spool command to the SQL REPL for SnowSQL feature parity.

  • !spool <filename> - Start writing query output to file
  • !spool off - Stop writing and close file

Output goes to both console and file. Spool is automatically closed on REPL exit.
Ref: https://docs.snowflake.com/en/user-guide/snowsql-use#spool

@varundeepsaini varundeepsaini requested a review from a team as a code owner December 13, 2025 06:01
@varundeepsaini
Copy link
Author

@sfc-gh-yostrinsky
could you please review this pr

@sfc-gh-yostrinsky
Copy link

Hi. I'm afraid I'm not in the role for that :)

@varundeepsaini
Copy link
Author

Could you please tag someone who is

sfc-gh-mraba
sfc-gh-mraba previously approved these changes Dec 18, 2025
@varundeepsaini
Copy link
Author

@sfc-gh-mraba i have pushed the suggested changes. Could you please review again and run the checks

@varundeepsaini
Copy link
Author

@sfc-gh-mraba bump ^^

@varundeepsaini
Copy link
Author

@sfc-gh-mraba bump ^^

varundeepsaini and others added 2 commits February 11, 2026 23:50
Updated section headers and improved clarity on configuration behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add !spool from snowsql to "snow sql"

3 participants