CivicSpleen / ambry

A comprehensive data package manager
BSD 2-Clause "Simplified" License
4 stars 5 forks source link

Sql Parser does not handle "ON" clause in joins #191

Closed ericbusboom closed 8 years ago

ericbusboom commented 8 years ago

The sql parser fails to parse the ON clause of joins:

$ py.test test/functional/test_sql_parser.py::Test::test_parser_basic
  self.assertEquals('cdph.ca.gov-hci-high_school_ed-state', select.joins[1].source.name)

E IndexError: list index out of range

ericbusboom commented 8 years ago

Nice work on the parser, @nmb10 . Fixing this issue was a lot easier than I had originally expected.