From 4e08bb04d963024a155770d26a4db5748b035cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Mon, 16 Mar 2026 15:39:21 -0700 Subject: [PATCH] Upgrade to 0.22.0 --- .github/workflows/ci.yml | 2 +- LICENSE | 21 +++++++++++++++++++ scripts/run_paradedb.sh | 2 +- tests/integration/conftest.py | 2 +- tests/integration/test_alembic_integration.py | 4 ++-- 5 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a5285f..487d208 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: services: paradedb: - image: paradedb/paradedb:0.21.10-pg18 + image: paradedb/paradedb:0.22.0-pg18 ports: - 5432:5432 env: diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1a487e5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 ParadeDB, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/scripts/run_paradedb.sh b/scripts/run_paradedb.sh index 0f1228e..453577d 100755 --- a/scripts/run_paradedb.sh +++ b/scripts/run_paradedb.sh @@ -8,7 +8,7 @@ else RUNNING=0 fi -IMAGE="${PARADEDB_IMAGE:-paradedb/paradedb:0.21.10-pg18}" +IMAGE="${PARADEDB_IMAGE:-paradedb/paradedb:0.22.0-pg18}" CONTAINER_NAME="${PARADEDB_CONTAINER_NAME:-paradedb-sqlalchemy-integration}" export PARADEDB_PORT="${PARADEDB_PORT:-5443}" export PARADEDB_USER="${PARADEDB_USER:-postgres}" diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index aaae437..63bd307 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -39,7 +39,7 @@ class MockItem(Base): metadata_: Mapped[Any] = mapped_column("metadata", JSONB, nullable=True) -PARADEDB_SCAN_PROVIDERS = {"ParadeDB Scan", "ParadeDB Aggregate Scan", "ParadeDB Join Scan"} +PARADEDB_SCAN_PROVIDERS = {"ParadeDB Base Scan", "ParadeDB Aggregate Scan", "ParadeDB Join Scan"} @pytest.fixture(scope="session") diff --git a/tests/integration/test_alembic_integration.py b/tests/integration/test_alembic_integration.py index 7d0126e..be6ad83 100644 --- a/tests/integration/test_alembic_integration.py +++ b/tests/integration/test_alembic_integration.py @@ -395,12 +395,12 @@ def test_autogenerate_emits_schema_on_drop_for_non_default_schema(engine): def _assert_bm25_queryable(conn, table_name, index_name, search_column, search_term): - """Run EXPLAIN (FORMAT TEXT) on a BM25 query and assert ParadeDB Scan is used.""" + """Run EXPLAIN (FORMAT TEXT) on a BM25 query and assert ParadeDB Base Scan is used.""" sql = f'EXPLAIN (FORMAT TEXT) SELECT * FROM "{table_name}" WHERE "{search_column}" @@@ \'{search_term}\'' rows = conn.execute(text(sql)).fetchall() plan_text = "\n".join(str(row[0]) for row in rows) assert any(scan in plan_text for scan in PARADEDB_SCAN_PROVIDERS), ( - f"Expected ParadeDB scan node in plan:\n{plan_text}" + f"Expected ParadeDB Base Scan node in plan:\n{plan_text}" ) assert index_name in plan_text, f"Expected index {index_name} in plan:\n{plan_text}"