Skip to content

Conversation

@Qup42
Copy link
Member

@Qup42 Qup42 commented Jun 20, 2024

This is the first PR in a series of PRs that will implement SPARQL UPDATE for QLever.

It implements LocatedTriples. These are triples that know to which block in a given permutation they belong to and whether they are to be inserted or deleted. They come with the functionality to find the corresponding blocks for a set of triples (to turn them into LocatedTriples as well as the functionality to merge a block from a permutation with all the LocatedTriples that belong to this block. The latter function is the core functionality to incorporate the results of an UPDATE into subsequent queries.

@Qup42
Copy link
Member Author

Qup42 commented Jun 20, 2024

This PR will run somewhat parallel to #1351. To keep it in sync I will cherry-pick the changes made here back to it.

@codecov
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 95.92760% with 9 lines in your changes missing coverage. Please review.

Project coverage is 89.22%. Comparing base (14d6e1c) to head (3d6663f).
Report is 2 commits behind head on master.

Files Patch % Lines
src/index/LocatedTriples.cpp 94.51% 0 Missing and 9 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1379      +/-   ##
==========================================
+ Coverage   89.06%   89.22%   +0.16%     
==========================================
  Files         328      335       +7     
  Lines       29294    29722     +428     
  Branches     3262     3313      +51     
==========================================
+ Hits        26090    26519     +429     
+ Misses       2054     2045       -9     
- Partials     1150     1158       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some preliminary comments, haven't looked at everything yet.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some more comments.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some additional suggestions and discussions.

@Qup42
Copy link
Member Author

Qup42 commented Jun 24, 2024

@joka921 whats the usual procedure for the coverage of debugging <<s? Write a test only to satisfy or even include a simple testcase?

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still have some questions, but those can be easily addressed.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one remaining question/suggestion.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little tiny request left:)

@sonarqubecloud
Copy link

@joka921 joka921 merged commit ee0e2ac into ad-freiburg:master Jul 18, 2024
hannahbast pushed a commit that referenced this pull request Nov 28, 2024
Since #1379, the located triples for each permutation have their own "augmented" block metadata (an update can change the first or last triple of a block). But so far, all index scan operations still use the original block metadata. Now they use the augmented block metadata when appropriate. For the two internal permutations, we assume that they are not affected by updates and we always use their original block metadata.
@Qup42 Qup42 deleted the update/locatedTriples branch January 23, 2025 09:57
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