Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

services:
paradedb:
image: paradedb/paradedb:0.23.0-pg18
image: paradedb/paradedb:0.24.2-pg18
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down
3 changes: 2 additions & 1 deletion scripts/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ if [[ -z "${CI:-}" ]]; then
fi

PORT="${PARADEDB_PORT:-5432}"
HOST="${PARADEDB_HOST:-127.0.0.1}"
USER="${PARADEDB_USER:-postgres}"
PASSWORD="${PARADEDB_PASSWORD:-postgres}"
DB="${PARADEDB_DB:-postgres}"

export PARADEDB_TEST_DSN="postgres://${USER}:${PASSWORD}@localhost:${PORT}/${DB}"
export PARADEDB_TEST_DSN="postgres://${USER}:${PASSWORD}@${HOST}:${PORT}/${DB}"
export PGPASSWORD="${PASSWORD}"

if [[ $# -gt 0 ]]; then
Expand Down
7 changes: 5 additions & 2 deletions scripts/run_paradedb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ else
RUNNING=0
fi

IMAGE="${PARADEDB_IMAGE:-paradedb/paradedb:latest-pg18}"
PARADEDB_VERSION="${PARADEDB_VERSION:-0.24.2}"
PARADEDB_POSTGRES_VERSION="${PARADEDB_POSTGRES_VERSION:-18}"
IMAGE="${PARADEDB_IMAGE:-paradedb/paradedb:${PARADEDB_VERSION}-pg${PARADEDB_POSTGRES_VERSION}}"
CONTAINER_NAME="${PARADEDB_CONTAINER_NAME:-paradedb-integration}"

# Allow overriding connection details via env vars
PORT="${PARADEDB_PORT:-5432}"
HOST="${PARADEDB_HOST:-127.0.0.1}"
USER="${PARADEDB_USER:-postgres}"
PASSWORD="${PARADEDB_PASSWORD:-postgres}"
DB="${PARADEDB_DB:-postgres}"

DATABASE_URL="${DATABASE_URL:-postgresql://${USER}:${PASSWORD}@localhost:${PORT}/${DB}}"
DATABASE_URL="${DATABASE_URL:-postgresql://${USER}:${PASSWORD}@${HOST}:${PORT}/${DB}}"
export DATABASE_URL

if ! command -v docker >/dev/null 2>&1; then
Expand Down
3 changes: 2 additions & 1 deletion scripts/run_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ if [[ -z "${CI:-}" ]]; then
fi

PORT="${PARADEDB_PORT:-5432}"
HOST="${PARADEDB_HOST:-127.0.0.1}"
USER="${PARADEDB_USER:-postgres}"
PASSWORD="${PARADEDB_PASSWORD:-postgres}"
DB="${PARADEDB_DB:-postgres}"

export PARADEDB_TEST_DSN="postgres://${USER}:${PASSWORD}@localhost:${PORT}/${DB}"
export PARADEDB_TEST_DSN="postgres://${USER}:${PASSWORD}@${HOST}:${PORT}/${DB}"
export PGPASSWORD="${PASSWORD}"

if [[ $# -gt 0 ]]; then
Expand Down
4 changes: 2 additions & 2 deletions spec/index_migration_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ class IndexMigrationBookByNameIndex < ParadeDB::Index
end.not_to raise_error

assert_sql_equal <<~SQL, indexdef_for("search_idx")
CREATE INDEX search_idx ON public.mock_items
USING bm25 (id, description, (((rating + 1))::pdb.alias('rating')))
CREATE INDEX search_idx ON public.mock_items USING bm25
(id, description, (((rating + 1))::pdb.alias('alias=rating')))
WITH (key_field=id)
SQL
assert index_exists?("search_idx")
Expand Down
Loading