does it support full file path?
Opened this issue · 0 comments
raywill commented
./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)