Skip to content
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

Minor refactorings in the query planning for property paths #1805

Merged

Conversation

RobinTF
Copy link
Collaborator

@RobinTF RobinTF commented Feb 13, 2025

Those include fixing smaller sonarcloud issues and addressing non-functional TODO statements in the code.

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 52.94118% with 40 lines in your changes missing coverage. Please review.

Project coverage is 90.04%. Comparing base (1570033) to head (6edc8ab).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/engine/QueryPlanner.cpp 41.66% 19 Missing and 2 partials ⚠️
src/parser/PropertyPath.cpp 40.74% 13 Missing and 3 partials ⚠️
src/engine/CheckUsePatternTrick.cpp 0.00% 0 Missing and 1 partial ⚠️
src/parser/ParsedQuery.cpp 75.00% 0 Missing and 1 partial ⚠️
src/parser/PropertyPath.h 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1805      +/-   ##
==========================================
+ Coverage   90.02%   90.04%   +0.02%     
==========================================
  Files         396      396              
  Lines       37974    37967       -7     
  Branches     4262     4261       -1     
==========================================
+ Hits        34185    34187       +2     
+ Misses       2493     2487       -6     
+ Partials     1296     1293       -3     

☔ 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.

Thank you very much. I have fixed two additional trivial sonarcloud issues and removed some [[nodiscard]] statements which clutter the code
I will merge this after the checks have run through again

PropertyPath::Operation op) {
PropertyPath p(std::move(op));
p._children = std::move(children);
const Operation op) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
const Operation op) {
const Operation& op) {

Copy link
Member

Choose a reason for hiding this comment

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

No, trivially copyable small types can be passed by value, the pointer is an overhead:)
The const is for the usage within the function:)

@sparql-conformance
Copy link

@joka921 joka921 changed the title Cleanup PropertyPath related code Minor refactorings in the query planning for property paths Feb 14, 2025
@joka921 joka921 merged commit 7a6351e into ad-freiburg:master Feb 14, 2025
22 of 24 checks passed
@RobinTF RobinTF deleted the cleanup-transitive-path-query-planning branch February 14, 2025 22:49
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