Title: SQL registry read_path is not normalized to the psycopg3 driver like path · Issue #6643 · feast-dev/feast · GitHub
Open Graph Title: SQL registry read_path is not normalized to the psycopg3 driver like path · Issue #6643 · feast-dev/feast
X Title: SQL registry read_path is not normalized to the psycopg3 driver like path · Issue #6643 · feast-dev/feast
Description: 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 equivale...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/feast-dev/feast/issues/6643
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SQL registry read_path is not normalized to the psycopg3 driver like path","articleBody":"## Description\n\nFor 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.\n\nIf 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.\n\n## Reproduction\n\n```python\nfrom feast.infra.registry.sql import SqlRegistryConfig\n\nconfig = SqlRegistryConfig(\n path=\"postgresql://user@host/db\",\n read_path=\"postgresql://user@host/replica\",\n)\nprint(config.path) # postgresql+psycopg://user@host/db (rewritten + warned)\nprint(config.read_path) # postgresql://user@host/replica (untouched, no warning)\n```\n\n## Expected\n\nread_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.\n\n## Details\n\n`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, ...)`.\n\nAffects 0.64.0 and current master. A PR follows.\n","author":{"url":"https://github.com/larrysingleton007","@type":"Person","name":"larrysingleton007"},"datePublished":"2026-07-24T14:12:59Z","url":"https://github.com/feast-dev/feast/issues/6643"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:39a93944-39d0-eb5d-2e01-f84b08a78e55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D96:184DF1:E9F782:1401C03:6AFE9814 |
| html-safe-nonce | 3060d6fb5606b1a7526939f49f36a68a5c78943a4bdea6c35bc8ef43a2325e20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDk2OjE4NERGMTpFOUY3ODI6MTQwMUMwMzo2QUZFOTgxNCIsInZpc2l0b3JfaWQiOiI4NjUxODcxMzk4MDQ3Njg0NjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a2abef65a5ecef7bce8b3c8fee23a60efe41f9960628f2c4e308894743b4f9f5 |
| hovercard-subject-tag | issue:4969230879 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cb3858e2232d3c245204b083cb0b1ab73faae1bbe1eb64b5672062cbea65ec4/feast-dev/feast/issues/6643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cb3858e2232d3c245204b083cb0b1ab73faae1bbe1eb64b5672062cbea65ec4/feast-dev/feast/issues/6643 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | larrysingleton007 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width