Title: fix: Support pgvector under non-default schema by Anarion-zuo · Pull Request #5970 · feast-dev/feast · GitHub
Open Graph Title: fix: Support pgvector under non-default schema by Anarion-zuo · Pull Request #5970 · feast-dev/feast
X Title: fix: Support pgvector under non-default schema by Anarion-zuo · Pull Request #5970 · feast-dev/feast
Description: What this PR does / why we need it:
Vector extension for postgres is almost always installed under the public schema by default. When the table's schema is not public, add public to search_path.
Which issue(s) this PR fixes:
Fixes #5814.
Misc
Steps to reproduce the issue with the pgvector example under examples/online_store/pgvector_tutorial. This PR resolve the following error.
Change db_schema in feature_store.yaml to a value other than 'public'.
Execute feast apply.
Execute python3 pgvector_example.py, and get the following error.
Performing similarity search for: 'wireless audio device with good sound'
Traceback (most recent call last):
File "/Users/bytedance/Projects/feast/examples/online_store/pgvector_tutorial/pgvector_example.py", line 207, in
Open Graph Description: What this PR does / why we need it: Vector extension for postgres is almost always installed under the public schema by default. When the table's schema is not public, add public to search_pat...
X Description: What this PR does / why we need it: Vector extension for postgres is almost always installed under the public schema by default. When the table's schema is not public, add public to search...
Opengraph URL: https://github.com/feast-dev/feast/pull/5970
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:01508d0a-ae30-14a9-31b7-d18c564f79fd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97A8:1E92:40F6188:5CFE858:6A4FF3F1 |
| html-safe-nonce | a438428e3007afd62e4254a810837db3d194f55e27f65b9f91faa23fcd7e338e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0E4OjFFOTI6NDBGNjE4ODo1Q0ZFODU4OjZBNEZGM0YxIiwidmlzaXRvcl9pZCI6IjY4NDk3OTYyMDk3NTU4MTI4NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f4a8f9fb4a008a5e7b24172f68e8df3dd6492d3fcae86db542128140eb125da8 |
| hovercard-subject-tag | pull_request:3284945512 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/feast-dev/feast/pull/5970/files |
| twitter:image | https://avatars.githubusercontent.com/u/46053503?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/46053503?s=400&v=4 |
| og:image:alt | What this PR does / why we need it: Vector extension for postgres is almost always installed under the public schema by default. When the table's schema is not public, add public to search_pat... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7e270be010aa4de2871991025fbb97f3afe2bcb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width