adbc-driver-postgresql 1.0.0__tar.gz → 1.2.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.
- {adbc_driver_postgresql-1.0.0/adbc_driver_postgresql.egg-info → adbc_driver_postgresql-1.2.0}/PKG-INFO +1 -1
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/_static_version.py +3 -3
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0/adbc_driver_postgresql.egg-info}/PKG-INFO +1 -1
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/tests/test_dbapi.py +15 -1
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/LICENSE.txt +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/MANIFEST.in +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/NOTICE.txt +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/README.md +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/__init__.py +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/_version.py +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/dbapi.py +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql.egg-info/SOURCES.txt +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql.egg-info/dependency_links.txt +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql.egg-info/requires.txt +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql.egg-info/top_level.txt +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/pyproject.toml +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/setup.cfg +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/setup.py +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/tests/test_lowlevel.py +0 -0
- {adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/tests/test_polars.py +0 -0
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
# This file is part of 'miniver': https://github.com/jbweston/miniver
|
|
22
22
|
|
|
23
|
-
version = "1.
|
|
23
|
+
version = "1.2.0"
|
|
24
24
|
|
|
25
25
|
# These values are only set if the distribution was created with 'git archive'
|
|
26
26
|
# NOTE: must add an export-subst to .gitattributes!
|
|
27
|
-
refnames = "HEAD, tag: apache-arrow-adbc-
|
|
28
|
-
git_hash = "
|
|
27
|
+
refnames = "HEAD, tag: apache-arrow-adbc-14-rc0, origin/maint-14"
|
|
28
|
+
git_hash = "15f330ce9"
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
+
import string
|
|
18
19
|
from pathlib import Path
|
|
19
20
|
from typing import Generator
|
|
20
21
|
|
|
22
|
+
import numpy
|
|
21
23
|
import pyarrow
|
|
22
24
|
import pyarrow.dataset
|
|
23
25
|
import pytest
|
|
@@ -146,7 +148,7 @@ def test_query_execute_schema(postgres: dbapi.Connection) -> None:
|
|
|
146
148
|
def test_query_invalid(postgres: dbapi.Connection) -> None:
|
|
147
149
|
with postgres.cursor() as cur:
|
|
148
150
|
with pytest.raises(
|
|
149
|
-
postgres.ProgrammingError, match="
|
|
151
|
+
postgres.ProgrammingError, match="Failed to prepare query"
|
|
150
152
|
) as excinfo:
|
|
151
153
|
cur.execute("SELECT * FROM tabledoesnotexist")
|
|
152
154
|
|
|
@@ -410,3 +412,15 @@ def test_ingest_temporary(postgres: dbapi.Connection) -> None:
|
|
|
410
412
|
assert cur.fetch_arrow_table() == temp2
|
|
411
413
|
cur.execute("SELECT * FROM temporary")
|
|
412
414
|
assert cur.fetch_arrow_table() == temp2
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
def test_ingest_large(postgres: dbapi.Connection) -> None:
|
|
418
|
+
"""Regression test for #1921."""
|
|
419
|
+
# More than 1 GiB of data in one batch
|
|
420
|
+
arr = pyarrow.array(numpy.random.randint(-100, 100, size=4_000_000))
|
|
421
|
+
batch = pyarrow.RecordBatch.from_pydict(
|
|
422
|
+
{char: arr for char in string.ascii_lowercase}
|
|
423
|
+
)
|
|
424
|
+
table = pyarrow.Table.from_batches([batch] * 4)
|
|
425
|
+
with postgres.cursor() as cur:
|
|
426
|
+
cur.adbc_ingest("test_ingest_large", table, mode="replace")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/__init__.py
RENAMED
|
File without changes
|
{adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/_version.py
RENAMED
|
File without changes
|
{adbc_driver_postgresql-1.0.0 → adbc_driver_postgresql-1.2.0}/adbc_driver_postgresql/dbapi.py
RENAMED
|
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
|