Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Fix eclipse/rdf4j#1293 optimizer for regex calls now handles non-var arguments #171

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

JervenBolleman
Copy link
Contributor

This PR addresses GitHub issue: eclipse-rdf4j/rdf4j#1293 .

The previous optimizer for replacing regex calls with contains,strstarts or strends did not work if the argument to the Regex was not a var.
e.g. REGEX(STR(?x), 'lala')
was not optimized.
This fixes this and adds a test for it.

@JervenBolleman
Copy link
Contributor Author

I am sorry for all the force pushes I am trying to get IP-validation part correct.

… other string functions

Signed-off-by: Jerven Bolleman <jerven.bolleman@sib.swiss>
@hmottestad
Copy link
Contributor

good to see you got the signing issues fixed :) I

@hmottestad
Copy link
Contributor

Should we consider targeting this at master and push it out with the 2.5 release?

@hmottestad
Copy link
Contributor

Also. What happens to Jenkins? Shouldn’t it be posting here asking if it needs to build and test this PR?

@abrokenjester
Copy link
Member

@hmottestad (on my phone so forgive brevity) I'm not sure why it's not doing that, but you or Bart should be able to ping it by commenting '@rdf4j-bot run tests'

@hmottestad
Copy link
Contributor

@rdf4j-bot run tests

@hmottestad hmottestad changed the base branch from develop to master February 13, 2019 06:32
@hmottestad hmottestad changed the base branch from master to develop February 13, 2019 06:32
@barthanssens barthanssens modified the milestone: 2.5.0 Feb 13, 2019
@abrokenjester
Copy link
Member

On a conference but I have a few spare minutes right now, I'll take a look at jenkins and why it's not picking up this PR

@abrokenjester abrokenjester changed the title 1293 Fix eclipse/rdf4j#1293 optimizer for regex calls now handles non-var arguments Feb 14, 2019
@abrokenjester
Copy link
Member

@rdf4j-bot run tests

@abrokenjester
Copy link
Member

Right, looks like I forgot to add you as an admin for the Jenkins PR config for rdf4j-storage, @hmottestad - that's why it ignored you. I've added you so the magic phrase should work for you too, from now on. FWIW Jenkins only automatically builds PRs from users that have been whitelisted, and Jerven hasn't yet.

@abrokenjester abrokenjester changed the base branch from develop to master February 14, 2019 05:47
@abrokenjester abrokenjester changed the base branch from master to develop February 14, 2019 05:47
@abrokenjester
Copy link
Member

abrokenjester commented Feb 14, 2019

Unfortunately this can not be easily rebased to the master branch as it was implemented off of a post-3.0 version of the develop branch. If we want to include it in 2.5, we'll need to cherrypick.

@hmottestad hmottestad merged commit 7864c2f into eclipse:develop Feb 15, 2019
@hmottestad
Copy link
Contributor

Merged into develop and cherry picked into master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants