You have 2 options that use sfsql, which is based on henplus. The first option is to export the result of your request to an intermediate S3 file, as shown below:
CREATE STAGE my_stage URL='s3://loading/files/' CREDENTIALS=(AWS_KEY_ID=β****' AWS_SECRET_KEY=β****β);
COPY INTO @my_stage/dump
FROM (select * from orderstiny limit 5) file_format=(format_name=βcsv' compression=βgzip'');
Another option is to capture the sql result into a file.
Test.sql:
set-property column-delimiter ",";
set-property sql-result-showheader off;
set-property sql-result-showfooter off;
select current_date() from dual;
$. / sfsql <test.sql> result.txt
- Snowflake Snowflake, Snowflake. β .
, .