Re: missing file on Calcite?

2018-02-16 Thread Alessandro Solimando
Hello,
just a little addition to the solution of Shuyi.

I had the same problem at first, Julian Hyde suggested a "$ mvn -DskipTests
clean test" (enough to generate the missing file, but you are not forced to
run the tests if you don't need to).



On 16 February 2018 at 00:56, Shuyi Chen  wrote:

> SqlParserImpl.java is javaCC generated code from the parser.jj. You need to
> to "mvn install" to compile the project to generate the file. It is under
> calcite/core/target/generated-sources/javacc/org/apache/
> calcite/sql/parser/impl/SqlParserImpl.java.
>
> Hope it helps.
>
> On Thu, Feb 15, 2018 at 2:39 PM, joyjoy  wrote:
>
> >  Hi,
> >
> > I am trying to use Calcite for my project. But found that in
> > SqlParser.java, one of the import package is missing in the Calcite--in
> > apache-calcite-1.15.0-src_core, in the package of
> > org.apache.calcite.sql.parser.SqlParser.java.
> >
> > The missing file is:
> >
> > org.apache.calcite.sql.parser.impl.SqlParserImpl.
> >
> >
> >
> > Eclipse complain that "the import
> > org.apache.calcite.sql.parser.impl.SqlParserImpl cannot be resolved"
> >
> > Should I command this import line out? Or I need this file to Parse sql?
> >
> >
> >
> > Thanks,
> >
> > Joy
> >
>
>
>
> --
> "So you have to trust that the dots will somehow connect in your future."
>


Re: missing file on Calcite?

2018-02-15 Thread Shuyi Chen
SqlParserImpl.java is javaCC generated code from the parser.jj. You need to
to "mvn install" to compile the project to generate the file. It is under
calcite/core/target/generated-sources/javacc/org/apache/calcite/sql/parser/impl/SqlParserImpl.java.

Hope it helps.

On Thu, Feb 15, 2018 at 2:39 PM, joyjoy  wrote:

>  Hi,
>
> I am trying to use Calcite for my project. But found that in
> SqlParser.java, one of the import package is missing in the Calcite--in
> apache-calcite-1.15.0-src_core, in the package of
> org.apache.calcite.sql.parser.SqlParser.java.
>
> The missing file is:
>
> org.apache.calcite.sql.parser.impl.SqlParserImpl.
>
>
>
> Eclipse complain that "the import
> org.apache.calcite.sql.parser.impl.SqlParserImpl cannot be resolved"
>
> Should I command this import line out? Or I need this file to Parse sql?
>
>
>
> Thanks,
>
> Joy
>



-- 
"So you have to trust that the dots will somehow connect in your future."