I really like experimental_connection, so I don’t have to use Snowpark session, but unfortunately, it’s not working for me. I have simple query, which successfully connects to the server, but the result fails on
SnowparkFetchDataException: (1406): Failed to fetch a Pandas Dataframe. The error is: to_pandas() did not return a Pandas DataFrame. If you use session.sql(…).to_pandas()
import streamlit as st
from snowflake.snowpark.session import Session
conn = st.experimental_connection("snowpark")
df = conn.query("select 1")
st.write(df)
I’m using VSC, if it helps. The same approach works with Snowflake session.
Hi @OddJelly, could you share your pyarrow version?
I was unable to duplicate the issue with
streamlit==1.24.1
pyarrow==10.0.1
snowflake-snowpark-python==1.5.1