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

json query does not support ! operator #154

Open
vitalz opened this issue Aug 16, 2018 · 0 comments
Open

json query does not support ! operator #154

vitalz opened this issue Aug 16, 2018 · 0 comments

Comments

@vitalz
Copy link

vitalz commented Aug 16, 2018

Issue occurred for that case:

! - Use to negate a filter: [?(!@.isbn)] matches items that do not have the isbn property. For instance, $.store.book[?(!@.isbn)].

This is one more case:

!= - Not equal to. String values must be enclosed in single quotes.

Parsing error at position 25: Unknown operator: !
com.nhl.link.move.runtime.json.query.ParseException: Parsing error at position 25: Unknown operator: !
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildScript(QueryCompiler.java:236)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildPredicate(QueryCompiler.java:202)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildFilter(QueryCompiler.java:179)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildSegment(QueryCompiler.java:85)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildChildOrFilter(QueryCompiler.java:142)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildSegment(QueryCompiler.java:79)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildChildOrFilter(QueryCompiler.java:142)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildSegment(QueryCompiler.java:79)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.buildQuery(QueryCompiler.java:56)
	at com.nhl.link.move.runtime.json.query.QueryCompiler$Parser.parse(QueryCompiler.java:42)
	at com.nhl.link.move.runtime.json.query.QueryCompiler.compile(QueryCompiler.java:19)
	at com.nhl.link.move.runtime.json.JsonExtractorFactory.getRootQuery(JsonExtractorFactory.java:46)
	at com.nhl.link.move.runtime.json.JsonExtractorFactory.createExtractor(JsonExtractorFactory.java:37)
	at com.nhl.link.move.runtime.json.JsonExtractorFactory.createExtractor(JsonExtractorFactory.java:11)
	at com.nhl.link.move.runtime.extractor.ReloadableExtractor.createExtractor(ReloadableExtractor.java:86)
	at com.nhl.link.move.runtime.extractor.ReloadableExtractor.createExtractor(ReloadableExtractor.java:73)
	at com.nhl.link.move.runtime.extractor.ReloadableExtractor.getDelegate(ReloadableExtractor.java:55)
	at com.nhl.link.move.runtime.extractor.ReloadableExtractor.getReader(ReloadableExtractor.java:42)
	at com.nhl.link.move.runtime.task.createorupdate.CreateOrUpdateTask.getRowReader(CreateOrUpdateTask.java:85)
	at com.nhl.link.move.runtime.task.createorupdate.CreateOrUpdateTask.run(CreateOrUpdateTask.java:59)
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

No branches or pull requests

1 participant