Skip to content

Commit

Permalink
Print warning message if pyarrow is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyhu-db committed Nov 13, 2024
1 parent 608d237 commit 9c926bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/databricks/sql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@

logger = logging.getLogger(__name__)

if pyarrow is None:
logger.warning(
"[WARN] pyarrow is not installed, any arrow specific api (e.g. fetchmany_arrow) and cloud fetch will be disabled."
"If you need these features, please run pip install pyarrow to install"
)

DEFAULT_RESULT_BUFFER_SIZE_BYTES = 104857600
DEFAULT_ARRAY_SIZE = 100000

Expand Down

0 comments on commit 9c926bf

Please sign in to comment.