Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PECO-1803] Print warning message if pyarrow is not installed #468

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading