tajo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hyunsik Choi <hyun...@apache.org>
Subject Re: java.lang.Error failure while running Tajo parser tests
Date Mon, 26 May 2014 02:59:03 GMT
Hi Prafulla,

SQLAnalyzer.java employs the generated source by Antlr. I've just tried to build the latest
source code.  I couldn't reproduce the problem.

I'm expecting that the problem may be caused by Antlr version conflicts, or you need to eliminate
the old generated source code.

Best regards,
Hyunsik

On May 25, 2014, at 2:01 AM, Prafulla <prafullat@yahoo.com> wrote:

> Hi,
> 
> I am getting following runtime exception when I try to run parser tests.
> Does anyone know if any of my system settings is causing this failure and how do I fix
it?
> I looked into relevant classes and error looks reasonable.  
> For now, I will fix it by modifying the code.
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.tajo.engine.parser.TestSQLAnalyzer
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.707 sec <<<
FAILURE!
> testCreateTablePartitionByHash1(org.apache.tajo.engine.parser.TestSQLAnalyzer)  Time
elapsed: 0.476 sec  <<< ERROR!
> java.lang.Error: Unresolved compilation problem: 
>     The method getText() is undefined for the type List<SQLParser.Table_nameContext>
> 
>     at org.apache.tajo.engine.parser.SQLAnalyzer.visitCreate_table_statement(SQLAnalyzer.java:1009)
>     at org.apache.tajo.engine.parser.SQLAnalyzer.visitCreate_table_statement(SQLAnalyzer.java:1)
>     at org.apache.tajo.engine.parser.SQLParser$Create_table_statementContext.accept(SQLParser.java:961)
>     at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:68)
>     at org.apache.tajo.engine.parser.SQLParserBaseVisitor.visitSchema_statement(SQLParserBaseVisitor.java:111)
>     at org.apache.tajo.engine.parser.SQLParser$Schema_statementContext.accept(SQLParser.java:537)
>     at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:68)
>     at org.apache.tajo.engine.parser.SQLParserBaseVisitor.visitStatement(SQLParserBaseVisitor.java:1455)
>     at org.apache.tajo.engine.parser.SQLParser$StatementContext.accept(SQLParser.java:367)
>     at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:44)
>     at org.apache.tajo.engine.parser.SQLAnalyzer.visitSql(SQLAnalyzer.java:75)
>     at org.apache.tajo.engine.parser.TestSQLAnalyzer.parseQuery(TestSQLAnalyzer.java:52)
>     at org.apache.tajo.engine.parser.TestSQLAnalyzer.testCreateTablePartitionByHash1(TestSQLAnalyzer.java:275)


Mime
View raw message