Github user hvanhovell commented on the pull request:
https://github.com/apache/spark/pull/10571#issuecomment-169007571
@viirya I did some digging.
The ```SparkSqlParser.g``` depends on 3 other grammars. When you touch the
```SparkSqlParser.g```or the ```SparkSqlLexer.g``` the ANTLR tool will detect
the change and re-generate the parser/lexer. However, if you touch the
dependent grammers, the ANTLR tool will not pick those if it can't find them.
ANTLR can't find those files we haven't configurated the library path.
Your fix is the correct one.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]