Skip to content

Commit 9c926bf

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/databricks/sql/client.py

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

5353
logger = logging.getLogger(__name__)
5454

55+
if pyarrow is None:
56+
logger.warning(
57+
"[WARN] pyarrow is not installed, any arrow specific api (e.g. fetchmany_arrow) and cloud fetch will be disabled."
58+
"If you need these features, please run pip install pyarrow to install"
59+
)
60+
5561
DEFAULT_RESULT_BUFFER_SIZE_BYTES = 104857600
5662
DEFAULT_ARRAY_SIZE = 100000
5763

0 commit comments

Comments
 (0)