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

Implemented function NOW() #1377

Merged
merged 34 commits into from
Jun 19, 2024
Merged

Conversation

realHannes
Copy link
Collaborator

@realHannes realHannes commented Jun 15, 2024

NOW() returns ad xsd:DateTime. If it is called multiple times within the same query, then every call to NOW() will return the same result.

realHannes and others added 30 commits April 25, 2024 19:07
@realHannes realHannes requested a review from joka921 June 15, 2024 10:22
Copy link

codecov bot commented Jun 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.90%. Comparing base (f9e730c) to head (86bb70b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1377      +/-   ##
==========================================
+ Coverage   88.89%   88.90%   +0.01%     
==========================================
  Files         327      328       +1     
  Lines       28974    28989      +15     
  Branches     3210     3211       +1     
==========================================
+ Hits        25756    25773      +17     
+ Misses       2066     2065       -1     
+ Partials     1152     1151       -1     

☔ 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,
This can be improved a little bit,
but the general framework looks very nice.

src/parser/sparqlParser/SparqlQleverVisitor.h Outdated Show resolved Hide resolved
src/parser/sparqlParser/SparqlQleverVisitor.h Outdated Show resolved Hide resolved
src/parser/SparqlParserHelpers.cpp Outdated Show resolved Hide resolved
src/engine/sparqlExpressions/NowDatetimeExpression.h Outdated Show resolved Hide resolved
src/engine/sparqlExpressions/NowDatetimeExpression.h Outdated Show resolved Hide resolved
src/engine/sparqlExpressions/NowDatetimeExpression.h Outdated Show resolved Hide resolved
src/engine/sparqlExpressions/NowDatetimeExpression.h Outdated Show resolved Hide resolved
test/NowDatetimeExpressionTest.cpp Show resolved Hide resolved
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.

The very last very tiny changes, we are converging!

src/engine/sparqlExpressions/NowDatetimeExpression.h Outdated Show resolved Hide resolved
src/parser/sparqlParser/SparqlQleverVisitor.h Outdated Show resolved Hide resolved
Copy link

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.

Super! Thank you

@joka921 joka921 changed the title implemented sparql-expression NOW() Implemented function NOW() Jun 19, 2024
@joka921 joka921 merged commit 1be8381 into ad-freiburg:master Jun 19, 2024
20 checks passed
joka921 added a commit that referenced this pull request Jun 19, 2024
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