GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SQL registry read_path is not normalized to the psycopg3 driver like path · Issue #6643 · feast-dev/feast

SQL registry read_path is not normalized to the psycopg3 driver like path #6643

New issue
Copy link
New issue
Copy link
Closed
#6644
Closed
SQL registry read_path is not normalized to the psycopg3 driver like path#6643
#6644
Copy link

Description

@larrysingleton007
larrysingleton007
opened on Jul 24, 2026
Issue body actions

Description

For a SQL registry, RegistryConfig.validate_path rewrites a bare postgresql:// URL in path to postgresql+psycopg:// so SQLAlchemy uses the psycopg3 driver, and logs a warning explaining the rewrite. read_path gets no equivalent treatment. It has no validator, so a bare postgresql:// read_path reaches create_engine unchanged and SQLAlchemy falls back to the psycopg2 driver, diverging from path (which used psycopg3) with no warning.

If psycopg2 isn't installed, or a project has standardized on psycopg3, this fails at connection time with nothing pointing at read_path as the odd one out.

Reproduction

from feast.infra.registry.sql import SqlRegistryConfig

config = SqlRegistryConfig(
    path="postgresql://user@host/db",
    read_path="postgresql://user@host/replica",
)
print(config.path)       # postgresql+psycopg://user@host/db   (rewritten + warned)
print(config.read_path)  # postgresql://user@host/replica      (untouched, no warning)

Expected

read_path should normalize the same way path does: rewrite a leading postgresql:// to postgresql+psycopg:// and log the same migration warning. An explicit postgresql+psycopg2:// should be left as-is, matching the existing path behavior.

Details

validate_path is a @field_validator("path") on RegistryConfig in sdk/python/feast/repo_config.py, gated on registry_type == "sql". read_path is declared on SqlRegistryConfig in sdk/python/feast/infra/registry/sql.py; it inherits the path validator but has none of its own, so it flows straight into create_engine(registry_config.read_path, ...).

Affects 0.64.0 and current master. A PR follows.

Activity

  1. larrysingleton007
    added a commit that references this issue on Jul 24, 2026

    fix: Normalize SQL registry read_path to the psycopg3 driver like path

    This issue will close once commit a98d95e is merged into the 'master' branch.
    a98d95e
  2. ntkathole
    added 4 commits that reference this issue on Jul 29, 2026

    fix: Normalize SQL registry read_path to the psycopg3 driver like path

    This issue will close once commit 374a4cb is merged into the 'master' branch.
    374a4cb

    fix: Normalize SQL registry read_path to the psycopg3 driver like path

    This issue will close once commit d25845a is merged into the 'master' branch.
    d25845a

    fix: Normalize SQL registry read_path to the psycopg3 driver like path

    This issue will close once commit 622b582 is merged into the 'master' branch.
    622b582

    fix: Normalize SQL registry read_path to the psycopg3 driver like path (

    This issue will close once commit 996c6ea is merged into the 'master' branch.
    996c6ea
  3. ntkathole
    closed this as completedin #6644on Jul 30, 2026
  4. jyejare
    added a commit that references this issue on Aug 5, 2026

    fix: Normalize SQL registry read_path to the psycopg3 driver like path (

    This issue will close once commit fcbf2e6 is merged into the 'master' branch.
    fcbf2e6
  5. franciscojavierarceo
    added a commit that references this issue on Aug 21, 2026

    chore(release): release 0.66.0

    1d5be95
  6. Michie-hub
    added a commit that references this issue on Aug 31, 2026

    chore(release): release 0.66.0

    a29c923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.