Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log the snowsql command #140

Closed
wants to merge 6 commits into from
Closed

Log the snowsql command #140

wants to merge 6 commits into from

Conversation

odinuv
Copy link
Member

@odinuv odinuv commented Mar 13, 2024

@odinuv odinuv requested a review from ondrajodas March 13, 2024 14:05
@@ -5,9 +5,9 @@ Exporting "sales" to "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:///opt/snowsqltempdir/run-%s.%s/out/tables/in.c-main.escaping.csv.gz; [] []
Downloading data from Snowflake.
[%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 [] []
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tohle toho moc neřekne (je to pokaždé stejný)... bylo by dobrý spíš logovat snowsql.sql

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mimo to to snowsql.sql taky bude pokaždé stejné, tak je možná zbytečný to posílat v každém jobu a může se to nechat jako debug

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no tak pointa celýho je, že to nemůžem nechat jako debug, když se to stane jednou denně náhodně u nějakýho jobu

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pointu chápu, ale nechápu v čem ti tohle pomůže když ten snowsql command je v každém jobu stejný (mění se teda jen random složka kam se ukládá config a soubor s SQLs)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tady máš jeden debug job - https://connection.keboola.com/admin/projects/6231/queue/1098695465

a ty informace na stejné konfiguraci budou vždycky stejný, jediný co by mohlo být užitečný z toho snowsql dostat queryId na který to spadlo - to ale nevím úplně jak, protože to bude mít jiný sessionId

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tak potřebuju to poslat do snowflaku a pak se můžem dívat jestli není něco podivnýho na disku

@odinuv
Copy link
Member Author

odinuv commented Mar 14, 2024

Je to celý píčovina :)

@odinuv odinuv closed this Mar 14, 2024
@odinuv odinuv deleted the odin-PST-1237 branch March 14, 2024 10:17
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.

2 participants