-
Notifications
You must be signed in to change notification settings - Fork 1.1k
store: Populate fulltext columns when copying a subgraph #6687
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5104,7 +5104,13 @@ impl<'a> CopyEntityBatchQuery<'a> { | |
| ) -> Result<Self, StoreError> { | ||
| let mut columns = Vec::new(); | ||
| for dcol in &dst.columns { | ||
| if let Some(scol) = src.column(&dcol.name) { | ||
| // Match against all source columns, INCLUDING fulltext (tsvector) | ||
| // columns, which `Table::column` deliberately hides. The stored | ||
| // tsvector is copied verbatim; without this, fulltext columns | ||
| // would be silently dropped from the copy (they are nullable, so | ||
| // the error branch below is not taken) and the destination's | ||
| // search index would be left empty. | ||
| if let Some(scol) = src.column_including_fulltext(&dcol.name) { | ||
| if let Some(msg) = dcol.is_assignable_from(scol, &src.object) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing that claude flagged during the review:
|
||
| return Err(anyhow!("{}", msg).into()); | ||
| } else { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
can_copy_fromalso usecolumn_including_fulltextit usescolumn()currently?