Created
March 7, 2019 06:51
-
-
Save wkalt/5945533be46c668512a52d7db71dda1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [7]: rows = c.query("people{a foobar}") | |
In [8]: rows.next() | |
--------------------------------------------------------------------------- | |
PQLParseError Traceback (most recent call last) | |
<ipython-input-8-db4151b65ded> in <module>() | |
----> 1 rows.next() | |
/home/wyatt/go/src/github.com/wkalt/pql/python/pqlpy/client.py in query(self, pql) | |
52 params = urllib.urlencode({"query": pql}) | |
53 resp = urllib.urlopen(self.endpoint + "?{}".format(params)) | |
---> 54 if resp.getcode() >= 400: | |
55 raise PQLParseError("\n{}".format(resp.read())) | |
56 else: | |
PQLParseError: | |
Parse error at line 1, column 13: | |
people{a foobar} | |
^ | |
Expected one of: | |
{ | |
is not null | |
is null | |
in | |
!~* | |
!~ | |
!= | |
= | |
> | |
< | |
<= | |
>= | |
~> | |
~* | |
~ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment