-
Notifications
You must be signed in to change notification settings - Fork 106
Implement the SUBSTR function #1057
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
Conversation
SEVERAL TODOS: * Tests * Corner case of negative start * Prepare the infrastructure for several other string expressions.
TODO<joka921> Tests for the parsing.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1057 +/- ##
==========================================
+ Coverage 78.26% 78.33% +0.06%
==========================================
Files 275 276 +1
Lines 25678 25770 +92
Branches 3143 3154 +11
==========================================
+ Hits 20098 20188 +90
- Misses 4378 4379 +1
- Partials 1202 1203 +1
☔ View full report in Codecov by Sentry. |
hannahbast
left a comment
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.
This looks great, I only have a small question.
test/SparqlAntlrParserTest.cpp
Outdated
| matchNaryWithChildrenMatchers( | ||
| &makeSubstrExpression, variableExpressionMatcher(V{"?x"}), | ||
| idExpressionMatcher(IntId(7)), | ||
| idExpressionMatcher(IntId(576460752303423487)))); |
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.
Why can't this number be computed from constants in ValueId?
|
Suggestion for commit message: First implementation of a non-trivial string function. |
|
Kudos, SonarCloud Quality Gate passed!
|









No description provided.