sqlutilpy 0.28.0__tar.gz → 0.29.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlutilpy-0.28.0/src/sqlutilpy.egg-info → sqlutilpy-0.29.0}/PKG-INFO +1 -1
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/src/sqlutilpy/sqlutil.py +7 -5
- sqlutilpy-0.29.0/src/sqlutilpy/version.py +1 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0/src/sqlutilpy.egg-info}/PKG-INFO +1 -1
- sqlutilpy-0.28.0/src/sqlutilpy/version.py +0 -1
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/LICENSE.txt +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/MANIFEST.in +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/README.md +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/pyproject.toml +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/setup.cfg +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/src/sqlutilpy/__init__.py +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/src/sqlutilpy.egg-info/SOURCES.txt +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/src/sqlutilpy.egg-info/dependency_links.txt +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/src/sqlutilpy.egg-info/requires.txt +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/src/sqlutilpy.egg-info/top_level.txt +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/tests/killer.py +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/tests/test_consistency.py +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/tests/test_duckdb.py +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/tests/test_fix_numpy.py +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/tests/test_pg.py +0 -0
- {sqlutilpy-0.28.0 → sqlutilpy-0.29.0}/tests/test_sqlite.py +0 -0
|
@@ -397,13 +397,15 @@ def __process_duckdb_column(col, intNullVal, strNullVal):
|
|
|
397
397
|
if isinstance(col, np.ma.MaskedArray):
|
|
398
398
|
kind = col.dtype.kind
|
|
399
399
|
if kind in ('i', 'u') and intNullVal is not None:
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
except (TypeError, OverflowError):
|
|
400
|
+
info = np.iinfo(col.dtype)
|
|
401
|
+
if not (info.min <= intNullVal <= info.max):
|
|
403
402
|
# intNullVal does not fit into the column type (e.g. a
|
|
404
403
|
# negative value for an unsigned or a tinyint column),
|
|
405
|
-
# so the column is widened to int64 first
|
|
406
|
-
|
|
404
|
+
# so the column is widened to int64 first.
|
|
405
|
+
# (we check explicitly rather than catch an exception,
|
|
406
|
+
# because numpy<2 silently wraps the value instead)
|
|
407
|
+
col = col.astype(np.int64)
|
|
408
|
+
col = col.filled(intNullVal)
|
|
407
409
|
elif kind == 'f':
|
|
408
410
|
col = col.filled(np.nan)
|
|
409
411
|
elif kind == 'M':
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.29.0'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.28.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|