Skip to content

Exclude full-text search columns from entity queries #5693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

encalypto
Copy link
Contributor

  • Remove tsvector columns from SELECT clauses in entity queries
  • Filter out full-text search columns from the list of selected columns

Full-text search columns (tsvector type) are used for indexing and efficient text searching, but they are not part of the entity's data model and are not meant to be directly queried or returned. This fixes a bug where trying to load a tsvector column fails, as diesel does not natively have tsvector support, and we don't explicitly handle the type in relational::value::OidValue::from_sql.

- Remove `tsvector` columns from `SELECT` clauses in entity queries
- Filter out full-text search columns from the list of selected columns

Full-text search columns (`tsvector` type) are used for indexing and
efficient text searching, but they are not part of the entity's data
model and are not meant to be directly queried or returned. This fixes a
bug where trying to load a tsvector column fails, as diesel does not
natively have tsvector support, and we don't explicitly handle the type
in `relational::value::OidValue::from_sql`.
@encalypto encalypto force-pushed the exclude-fulltext-columns branch from d52a468 to 017eebd Compare November 4, 2024 17:33
@encalypto encalypto marked this pull request as ready for review November 4, 2024 17:58
@encalypto encalypto requested a review from lutter November 4, 2024 17:58
@encalypto encalypto merged commit fc80657 into master Nov 4, 2024
6 checks passed
@encalypto encalypto deleted the exclude-fulltext-columns branch November 4, 2024 21:08
encalypto added a commit that referenced this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants