Fetching data with snowflake connector throws EmptyPyArrowIterator error

You have to install pyarrow module via

pip3 install pyarrow

Installation of the snowflake connector does not automatically install it.


Short version: Roll back your snowflake-connector-python to version 2.0.4 by running: pipenv install "snowflake-connector-python~=2.0.4"

Long version: I checked the commits to the github for the connector, and I saw that they're adding ARROW support. Not sure exactly why arrow_result.pyx is unable to include EmptyPyArrowIterator, but it's wrapped in a try, so it still executes. However, when it gets to the reset function, it can't find the reference and throws an exception.


Please use the Python connector version 2.1.1

pip install snowflake-connector-python==2.1.1

OR

pip3 install snowflake-connector-python==2.1.1