-
Notifications
You must be signed in to change notification settings - Fork 564
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
Fixed one issue with SUBSTR and CONCAT. Also fixed another issue with… #1361
Conversation
… the order by clause when ASC or DESC is used. Removed None as default value from the function header
I think it would be nice to have some tests for these issues, I looked at adding them but I'm actually not sure how the tests work at the moment. It seems you use some custom approach to testing and I don't see where that is hooked into the normal unit tests that run when Also it seems your tests needs additional pandas and tabulate modules which are not in I tried running your tests as follow:
But this then fails with:
Ideally all tests should run with run_tests.py and be hooked into whatever test system the rest of RDFLib uses. |
This seems to be passing all current tests but as @aucampia notes, it doesn't include any of its own tests. @GreenfishK, would you be able to include a simple test? We're using pytests nowadays! |
@GreenfishK we are keen to merge this update in but can't do that without some tests. Would you be able to include a test showing things that you've updated working well and, without your update, failing? Thanks. |
@nicholascar yes I will migrate all my tests to the new structure but I can only do it after christmas holidays if that is ok for you? |
@GreenfishK please keep us in the loop on it, I may also look at this if I have time (no promises though) and will similarly keep you up to date. I would suggest first an independent PR to just get tests running with existing test framework (#1451) and then rebasing this once that is merged with an additional test. |
@GreenfishK very happy to wait for your tests migration after Christmas if @aucampia decides he need a break! and leaves it to you! |
added three tests to cover changes made by the pull request #1361
@GreenfishK I am guessing we can close this now since the changes were part of the other PR? |
@aucampia Yes, we can close it. |
… the order by clause when ASC or DESC is used. Removed None as default value from the function header
Fixes #
SUBSTR: The 'length' parameter was not included. Now it is
SUBSTR: Did not work with group variables. E.g. when ?x was used in group by and in substr, ?x would appear as __aggr_1 in Builtin_substr in the query algebra tree. Group variables in built in functions are now replaced properly
CONCAT: Nested expressions with group variables in CONCAT are now translated properly
function header: The parameter query_algebra is not optional anymore