tajo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jihoon Son <jihoon...@apache.org>
Subject Re: java.lang.Error failure while running Tajo parser tests
Date Mon, 26 May 2014 02:45:43 GMT
Hi Prafulla,

that error is very strange. The method getText() is extended from an Antlr
class, named RuleContext, and thus should exists.
Maybe, there is a conflict with other configurations for antlr.

Thanks,
Jihoon


2014-05-25 2:01 GMT+09:00 Prafulla <prafullat@yahoo.com>:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message