We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7bbeb commit b2d6ce3Copy full SHA for b2d6ce3
src/snowflake/connector/options.py
@@ -5,6 +5,7 @@
5
from __future__ import annotations
6
7
import importlib
8
+import os
9
import warnings
10
from importlib.metadata import distributions
11
from logging import getLogger
@@ -79,6 +80,10 @@ def _import_or_missing_pandas_option() -> (
79
80
81
pyarrow = importlib.import_module("pyarrow")
82
83
+ # set default memory pool to system for pyarrow to_pandas conversion
84
+ if "ARROW_DEFAULT_MEMORY_POOL" not in os.environ:
85
+ os.environ["ARROW_DEFAULT_MEMORY_POOL"] = "system"
86
+
87
# Check whether we have the currently supported pyarrow installed
88
installed_packages = {
89
package.metadata["Name"]: package for package in distributions()
0 commit comments