You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
When no tables are found, the target will create a new table in Snowflake. But if a schema is empty (for some reason, e.g., is tap-spreadsheets-anywhere when no files are found), the SQL query will have an empty column definition (e.g., ()), and the SQL query will fail.
returnf'CREATE {p_temp}TABLE IF NOT EXISTS {p_table_name} ({p_columns}) {p_extra}'
Expected behavior
I expect the target to ignore the creation of a table (and expect that no records for this schema will arrive). In the case of tap-spreadsheets-anywhere, if a schema is empty, it probably means no files were found, and no records will come afterward.
Some other taps might output an empty schema and still send records afterward. Not sure how much the target should be responsible for handling those errors.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Details
When no tables are found, the target will create a new table in Snowflake. But if a schema is empty (for some reason, e.g., is tap-spreadsheets-anywhere when no files are found), the SQL query will have an empty column definition (e.g.,
()
), and the SQL query will fail.The query is executed here:
pipelinewise-target-snowflake/target_snowflake/db_sync.py
Lines 811 to 814 in aa6ac2e
And constructed here:
pipelinewise-target-snowflake/target_snowflake/db_sync.py
Lines 549 to 569 in aa6ac2e
Expected behavior
I expect the target to ignore the creation of a table (and expect that no records for this schema will arrive). In the case of tap-spreadsheets-anywhere, if a schema is empty, it probably means no files were found, and no records will come afterward.
Some other taps might output an empty schema and still send records afterward. Not sure how much the target should be responsible for handling those errors.
The text was updated successfully, but these errors were encountered: