Skip to content

Commit 7f9b201

Browse files
committed
logging: suppress acero alignment warnings
1 parent 3a3d1b2 commit 7f9b201

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/amp/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
"""Amp - Flight SQL client with comprehensive data loading capabilities."""
22

3+
import os
4+
5+
# Suppress PyArrow acero alignment warnings before any imports
6+
# These warnings are informational and cannot be controlled via logging
7+
# Valid values: ignore, warn, reallocate, error
8+
os.environ.setdefault('ACERO_ALIGNMENT_HANDLING', 'ignore')
9+
310
from amp.client import Client, QueryBuilder
411
from amp.registry import RegistryClient
512

0 commit comments

Comments
 (0)