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

does it support full file path? #3

Open
raywill opened this issue Apr 30, 2020 · 0 comments
Open

does it support full file path? #3

raywill opened this issue Apr 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@raywill
Copy link
Owner

raywill commented Apr 30, 2020

./tq "select c1,c2 from /tmp/file1"

got an error:

$./tq "select c1,c2 from /tmp/file1"
Traceback (most recent call last):
  File "./tq", line 27, in <module>
    ast = parse(userSql)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/moz_sql_parser/__init__.py", line 53, in parse
    raise ParseException(sql, e.loc, "Expecting one of (" + (", ".join(expecting)) + ")")
pyparsing.ParseException: Expecting one of (and, reserved, is, nlike, full outer join, as, union all, in, inner join, select, end, left outer join, union, when, group by, binary_and, order by, neq, then, nin, binary_or, between, full join, not_between, else, asc, offset, using, with, right outer join, concat, desc, case, on, join, like, left join, doc, limit, collate nocase, where, or, Found unwanted token, {nin | nlike | then | join | in | reserved | inner join | group by | limit | left outer join | order by | is | select | case | full outer join | with | left join | when | right outer join | offset | asc | neq | using | full join | union |   doc   | union all | end | not_between | else | as | between | collate nocase | where | desc | and | on | from | like | or | right join | cross join | having}) (at char 13), (line:1, col:14)
@raywill raywill added the bug Something isn't working label Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant