-
Notifications
You must be signed in to change notification settings - Fork 56
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
Implement functions UUID()
and STRUUID()
#1366
Conversation
Co-authored-by: Johannes Kalmbach <[email protected]>
Co-authored-by: Johannes Kalmbach <[email protected]>
Co-authored-by: Johannes Kalmbach <[email protected]>
Co-authored-by: Johannes Kalmbach <[email protected]>
…neral implementation
Co-authored-by: Johannes Kalmbach <[email protected]>
Co-authored-by: Johannes Kalmbach <[email protected]>
…ng correct prefix in Constants.h
Should the urn:uuid for the Iri be defined in |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1366 +/- ##
==========================================
- Coverage 88.89% 88.88% -0.01%
==========================================
Files 326 327 +1
Lines 28992 29034 +42
Branches 3214 3217 +3
==========================================
+ Hits 25773 25808 +35
- Misses 2066 2068 +2
- Partials 1153 1158 +5 ☔ View full report in Codecov by Sentry. |
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.
Some very minor suggestions, overall this looks good!
|
||
using LiteralOrIri = ad_utility::triple_component::LiteralOrIri; | ||
|
||
inline constexpr auto fromLiteral = [](std::string_view str) { |
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.
inline
is redundant forconstexpr
values, so it can be dropped.- Those inline functions are a bit prone to multiple definition errors etc, better move them into a namespace
sparqlExpression::uuidExpression::detail
or something.
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.
Somehow the tests for builtInCall
don't pass if i remove the inline
.
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.
Only a very very minor change left.
Quality Gate passedIssues Measures |
UUID()
and STRUUID()
These functions generate a random UUID for each invocation.
These functions generate a random UUID for each invocation.