Skip to content

Commit

Permalink
Merge pull request #139 from keboola/ondra-change-tmp-dir
Browse files Browse the repository at this point in the history
Change TMPDIR
  • Loading branch information
ondrajodas authored Dec 19, 2023
2 parents b2fbbde + a74ce5b commit 9bf8736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ ARG SNOWFLAKE_ODBC_GPG_KEY=630D9F3CAB551AF3
ARG SNOWFLAKE_SNOWSQL_GPG_KEY=EC218558EABB25A1
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV DEBIAN_FRONTEND noninteractive
ENV TMPDIR=/opt/snowsqltempdir

RUN mkdir -p /opt/snowsqltempdir

# Install Dependencies
RUN apt-get update \
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/run-action-row-debug-logging/expected-stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Creating ODBC connection to "Driver=SnowflakeDSIIDriver;Server=kebooladev.snowfl
Exporting "sales" to "in.c-main.escaping".
[%s] DEBUG: Running query "REMOVE @~/in.c-main.escaping;". [] []
[%s] DEBUG: Running query " COPY INTO @~/in.c-main.escaping/part FROM (SELECT * FROM "escaping") FILE_FORMAT = (TYPE=CSV FIELD_DELIMITER = ',' FIELD_OPTIONALLY_ENCLOSED_BY = '"' ESCAPE_UNENCLOSED_FIELD = '\\' COMPRESSION = 'GZIP' NULL_IF=()) HEADER = false MAX_FILE_SIZE=50000000 OVERWRITE = TRUE ; ". [] []
[%s] DEBUG: USE DATABASE "COMPONENT_TESTING"; USE SCHEMA "COMPONENT_TESTING"."COMPONENT_TEST"; GET @~/in.c-main.escaping file:///tmp/run-%s.%s/out/tables/in.c-main.escaping.csv.gz; [] []
[%s] DEBUG: USE DATABASE "COMPONENT_TESTING"; USE SCHEMA "COMPONENT_TESTING"."COMPONENT_TEST"; GET @~/in.c-main.escaping file:///opt/snowsqltempdir/run-%s.%s/out/tables/in.c-main.escaping.csv.gz; [] []
Downloading data from Snowflake.
[%s] DEBUG: snowsql --noup --config /tmp/ex-snowflake-adapter/run-%s.%s/snowsql.config -c downloader -f /tmp/ex-snowflake-adapter/run-%s.%s/%s-snowsql.sql [] []
[%s] DEBUG: snowsql --noup --config /opt/snowsqltempdir/ex-snowflake-adapter/run-%s.%s/snowsql.config -c downloader -f /opt/snowsqltempdir/ex-snowflake-adapter/run-%s.%s/%s-snowsql.sql [] []
1 files (216 B) downloaded.
[%s] DEBUG: Running query "SELECT * FROM (SELECT * FROM "escaping") LIMIT 0;". [] []
[%s] DEBUG: Running query "DESC RESULT LAST_QUERY_ID()". [] []
Expand Down

0 comments on commit 9bf8736

Please sign in to comment.