Skip to content

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.

3 participants