Skip to content

Commit 6ad8701

Browse files
committed
Print warning message if pyarrow is not installed
1 parent 608d237 commit 6ad8701

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/databricks/sql/client.py

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252

5353
logger = logging.getLogger(__name__)
5454

55+
if pyarrow is None:
56+
logger.warning(
57+
"[WARN] pyarrow is not installed by default since databricks-sql-connector 4.0.0,"
58+
"any arrow specific api (e.g. fetchmany_arrow) and cloud fetch will be disabled."
59+
"If you need these features, please run pip install pyarrow or pip install databricks-sql-connector[pyarrow] to install"
60+
)
61+
5562
DEFAULT_RESULT_BUFFER_SIZE_BYTES = 104857600
5663
DEFAULT_ARRAY_SIZE = 100000
5764

0 commit comments

Comments
 (0)