Skip to content

Commit

Permalink
Print warning message if pyarrow is not installed
Browse files Browse the repository at this point in the history
Signed-off-by: Jacky Hu <[email protected]>
  • Loading branch information
jackyhu-db committed Nov 13, 2024
1 parent 608d237 commit 2f251fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/databricks/sql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@

logger = logging.getLogger(__name__)

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

DEFAULT_RESULT_BUFFER_SIZE_BYTES = 104857600
DEFAULT_ARRAY_SIZE = 100000

Expand Down

0 comments on commit 2f251fe

Please sign in to comment.