Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

#91 fix error when snowflake returns empty result #92

Merged
merged 1 commit into from
Sep 28, 2019

Conversation

joycelau1
Copy link
Contributor

Aleph returns an error whenever a Snowflake query returns no row.

The specified key does not exist.

Aleph currently executes a unload of the query and read the first 100 rows from the unloaded files in s3. Since Snowflake does not create a file when result file is empty, Aleph generates the error when it tries to read from the file.

Check number of rows unloaded. If zero, create an "empty" file (file header row only) from aleph.

@joycelau1 joycelau1 merged commit dcbfaa1 into master Sep 28, 2019
@joycelau1 joycelau1 deleted the snowflake_empty_result_set branch September 28, 2019 22:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants