File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
1414 - Cleanup some C++ code warnings and performance issues.
1515 - Added support for Python 3.12
1616 - Make local testing more robust against implicit assumptions.
17+ - Fixed PyArrow Table type hinting
1718
1819- v3.6.0(December 09,2023)
1920
Original file line number Diff line number Diff line change 7272
7373if TYPE_CHECKING : # pragma: no cover
7474 from pandas import DataFrame
75+ from pyarrow import Table
7576
7677 from .connection import SnowflakeConnection
7778 from .file_transfer_agent import SnowflakeProgressPercentage
8182
8283logger = getLogger (__name__ )
8384
84- if installed_pandas :
85- from pyarrow import Table
86- else :
87- logger .debug ("Failed to import pyarrow. Cannot use pandas fetch API" )
88- Table = None
85+
86+ if not installed_pandas :
87+ logger .debug (
88+ "Failed to import pyarrow or pandas. Cannot use pandas fetch API. Please "
89+ "install snowflake-connector-python with the `pandas` extra to use these "
90+ "features."
91+ )
92+
8993
9094try :
9195 from .nanoarrow_arrow_iterator import PyArrowIterator # NOQA
You can’t perform that action at this time.
0 commit comments