Closed matquant14 closed 10 months ago
Hello, yes the 3.3.0b1 is a beta version that has an experimental arrow library that removes the pinning on a pyarrow version. 3.4.0 is a production version that does not have this change. We plan on releasing a productionized version of 3.3.0b1 this week so please keep an eye out for that. In the meantime, please use a compatible pyarrow version for 3.4.0
hi @matquant14, we have just released v3.5.0 which stops pinning pyarrow anymore. could you try installing the latest connector and let us know how it goes for you
Fixed with 3.5.0
Hi @sfc-gh-aling and @sfc-gh-achandrasekaran,
I updated to v3.5.0. I'm getting a NotSupportedError when I try to run a SHOW object command with a cursor and fetch it with either pandas or arrow. It seems to occur in the fetch_pandas_all and fetch_arrow_all cursor methods. I believe it has to do w/ the query format returning JSON, but the method requires the format to be arrow. If I just do fetchall, and manually place the rows into a pandas and/or polars dataframe using from_records, it works.
# fails
cur = connection.cursor()
cursor.execute("SHOW TABLES")
df = cur.fetch_pandas_all()
# -> NotSupportedError: Unknown error
# works
cur = connection.cursor()
cursor.execute("SHOW TABLES")
col_names= [val[0] for val in cur.description]
df = pd.DataFrame.from_records(cur.fetchall(),columns=col_names)
Any idea how I can fix this?
Python version
Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)]
Operating system and processor architecture
Windows-10-10.0.19045-SP0
Installed packages
What did you do?
What did you expect to see?
No UserWarning
Can you set logging to DEBUG and collect the logs?