I have logged https://issues.apache.org/jira/browse/CALCITE-1788 <https://issues.apache.org/jira/browse/CALCITE-1788>, which refactors the parser to use a “builder” class, Span, to hold the positions of the current tokens that contribute to the current production. It is a large change. It also breaks extensions such as DDL productions because the “SqlParserPos” argument is now a “Span”.
So, I’d appreciate a couple of reviews. Julian
